Public Slots | Public Member Functions | Protected Member Functions | Private Attributes

conan::ConnectionFilterProxyModel Class Reference

Provides sorting and filtering functionality specific to ConnectionModels. More...

#include <ConnectionModel.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

conan::ConnectionFilterProxyModel::ConnectionFilterProxyModel ( QObject *  inParent = 0  ) 

Member Function Documentation

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


Member Data Documentation

The class name of the object whose connections are used by the ConnectionModel.

Controls inactive method filtering.

Controls inherited method filtering.


The documentation for this class was generated from the following files: