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

Public Functions

bool operator() (int r1, int r2) const
 
 QSortFilterProxyModelGreaterThan (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 90 of file qsortfilterproxymodel.cpp.

Constructors and Destructors

◆ QSortFilterProxyModelGreaterThan()

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

Definition at line 93 of file qsortfilterproxymodel.cpp.

Functions

◆ operator()()

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

Definition at line 99 of file qsortfilterproxymodel.cpp.

100  {
103  return proxy_model->lessThan(i2, i1);
104  }
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* QSortFilterProxyModelGreaterThan::proxy_model
private

Definition at line 110 of file qsortfilterproxymodel.cpp.

◆ sort_column

int QSortFilterProxyModelGreaterThan::sort_column
private

Definition at line 107 of file qsortfilterproxymodel.cpp.

◆ source_model

const QAbstractItemModel* QSortFilterProxyModelGreaterThan::source_model
private

Definition at line 109 of file qsortfilterproxymodel.cpp.

◆ source_parent

QModelIndex QSortFilterProxyModelGreaterThan::source_parent
private

Definition at line 108 of file qsortfilterproxymodel.cpp.


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