Provides sorting and filtering functionality specific to ConnectionModels. More...
#include <ConnectionModel.h>
Public Slots | |
void | SlotEnableInactiveFiltering (bool inEnable) |
void | SlotEnableInheritedFiltering (bool inEnable) |
Public Member Functions | |
ConnectionFilterProxyModel (QObject *inParent=0) | |
void | SetClassName (const QString &inClassName) |
Sets the class name used during 'inherited method' filtering. | |
Protected Member Functions | |
virtual bool | filterAcceptsRow (int inSourceRow, const QModelIndex &inSourceParent) const |
Returns true if the item indicated by the given source row and parent should be included in the model; otherwise returns false. | |
virtual bool | lessThan (const QModelIndex &inLeft, const QModelIndex &inRight) const |
Returns true if the value of the item referred to by the left index is less than that of the right index, otherwise returns false. | |
virtual bool | lessThan (const QModelIndex &inLeft, const QModelIndex &inRight, const QList< int > &inSortOrder) const |
Performs the actual value based index sorting using the given sort column order. | |
Private Attributes | |
bool | mInactiveFiltering |
Controls inactive method filtering. | |
bool | mInheritedFiltering |
Controls inherited method filtering. | |
QString | mClassName |
The class name of the object whose connections are used by the ConnectionModel. |
Provides sorting and filtering functionality specific to ConnectionModels.
Two filtering options are provided: inactive methods and inherited methods. Inactive methods are signals or slots without any connections. Inherited methods are signals or slots that are declared in a base class other then mClassName
.
conan::ConnectionFilterProxyModel::ConnectionFilterProxyModel | ( | QObject * | inParent = 0 |
) |
bool conan::ConnectionFilterProxyModel::filterAcceptsRow | ( | int | inSourceRow, | |
const QModelIndex & | inSourceParent | |||
) | const [protected, virtual] |
Returns true if the item indicated by the given source row and parent should be included in the model; otherwise returns false.
bool conan::ConnectionFilterProxyModel::lessThan | ( | const QModelIndex & | inLeft, | |
const QModelIndex & | inRight, | |||
const QList< int > & | inSortOrder | |||
) | const [protected, virtual] |
Performs the actual value based index sorting using the given sort column order.
bool conan::ConnectionFilterProxyModel::lessThan | ( | const QModelIndex & | inLeft, | |
const QModelIndex & | inRight | |||
) | const [protected, virtual] |
Returns true if the value of the item referred to by the left index is less than that of the right index, otherwise returns false.
The column sort order is always: the primary (selected) sort column -> signature column -> object column -> address column.
void conan::ConnectionFilterProxyModel::SetClassName | ( | const QString & | inClassName | ) |
Sets the class name used during 'inherited method' filtering.
void conan::ConnectionFilterProxyModel::SlotEnableInactiveFiltering | ( | bool | inEnable | ) | [slot] |
Controls inactive method filtering
void conan::ConnectionFilterProxyModel::SlotEnableInheritedFiltering | ( | bool | inEnable | ) | [slot] |
Controls inherited method filtering
QString conan::ConnectionFilterProxyModel::mClassName [private] |
The class name of the object whose connections are used by the ConnectionModel.
bool conan::ConnectionFilterProxyModel::mInactiveFiltering [private] |
Controls inactive method filtering.
bool conan::ConnectionFilterProxyModel::mInheritedFiltering [private] |
Controls inherited method filtering.