QxOrm
1.5.0
C++ Object Relational Mapping library
|
qx::QxModelRowCompare : functor used to provide sort feature for all models based on qx::IxModel interface (please note that you can also use QSortFilterProxyModel Qt class to sort your model) More...
#include <QxModelRowCompare.h>
Public Member Functions | |
QxModelRowCompare (bool bAscendingOrder, qx::IxDataMember *pDataMember) | |
bool | operator() (const T &t1, const T &t2) const |
Public Attributes | |
bool | m_bAscendingOrder |
Sort your model using ascending or descending order. | |
qx::IxDataMember * | m_pDataMember |
Data member associated to the model column to sort. |
qx::QxModelRowCompare : functor used to provide sort feature for all models based on qx::IxModel interface (please note that you can also use QSortFilterProxyModel Qt class to sort your model)
Definition at line 58 of file QxModelRowCompare.h.
qx::model_view::QxModelRowCompare< T >::QxModelRowCompare | ( | bool | bAscendingOrder, |
qx::IxDataMember * | pDataMember | ||
) | [inline] |
Definition at line 64 of file QxModelRowCompare.h.
bool qx::model_view::QxModelRowCompare< T >::operator() | ( | const T & | t1, |
const T & | t2 | ||
) | const [inline] |
Definition at line 66 of file QxModelRowCompare.h.
bool qx::model_view::QxModelRowCompare< T >::m_bAscendingOrder |
Sort your model using ascending or descending order.
Definition at line 61 of file QxModelRowCompare.h.
qx::IxDataMember* qx::model_view::QxModelRowCompare< T >::m_pDataMember |
Data member associated to the model column to sort.
Definition at line 62 of file QxModelRowCompare.h.