Qt 4.8
Public Functions | Properties | List of all members
QSortFilterProxyModelLessThan Class Reference

Public Functions

bool operator() (int r1, int r2) const
 
 QSortFilterProxyModelLessThan (int column, const QModelIndex &parent, const QAbstractItemModel *source, const QSortFilterProxyModel *proxy)
 

Properties

const QSortFilterProxyModelproxy_model
 
int sort_column
 
const QAbstractItemModelsource_model
 
QModelIndex source_parent
 

Detailed Description

Definition at line 68 of file qsortfilterproxymodel.cpp.

Constructors and Destructors

◆ QSortFilterProxyModelLessThan()

QSortFilterProxyModelLessThan::QSortFilterProxyModelLessThan ( int  column,
const QModelIndex parent,
const QAbstractItemModel source,
const QSortFilterProxyModel proxy 
)
inline

Definition at line 71 of file qsortfilterproxymodel.cpp.

74  : sort_column(column), source_parent(parent), source_model(source), proxy_model(proxy) {}
const QAbstractItemModel * source_model
const QSortFilterProxyModel * proxy_model

Functions

◆ operator()()

bool QSortFilterProxyModelLessThan::operator() ( int  r1,
int  r2 
) const
inline

Definition at line 76 of file qsortfilterproxymodel.cpp.

77  {
80  return proxy_model->lessThan(i1, i2);
81  }
const QAbstractItemModel * source_model
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const =0
Returns the index of the item in the model specified by the given row, column and parent index...
virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const
Returns true if the value of the item referred to by the given index left is less than the value of t...
const QSortFilterProxyModel * proxy_model
The QModelIndex class is used to locate data in a data model.

Properties

◆ proxy_model

const QSortFilterProxyModel* QSortFilterProxyModelLessThan::proxy_model
private

◆ sort_column

int QSortFilterProxyModelLessThan::sort_column
private

◆ source_model

const QAbstractItemModel* QSortFilterProxyModelLessThan::source_model
private

◆ source_parent

QModelIndex QSortFilterProxyModelLessThan::source_parent
private

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