QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Helper class for sorting tables, takes into account sorting column and ascending / descending. More...
#include <qgscomposerattributetablev2.h>
Public Member Functions | |
QgsComposerAttributeTableCompareV2 () | |
bool | operator() (const QgsComposerTableRow &m1, const QgsComposerTableRow &m2) |
void | setAscending (bool asc) |
Sets sort order for column sorting. More... | |
void | setSortColumn (int col) |
Sets column number to sort by. More... | |
Helper class for sorting tables, takes into account sorting column and ascending / descending.
Definition at line 31 of file qgscomposerattributetablev2.h.
QgsComposerAttributeTableCompareV2::QgsComposerAttributeTableCompareV2 | ( | ) |
Definition at line 32 of file qgscomposerattributetablev2.cpp.
bool QgsComposerAttributeTableCompareV2::operator() | ( | const QgsComposerTableRow & | m1, |
const QgsComposerTableRow & | m2 | ||
) |
Definition at line 39 of file qgscomposerattributetablev2.cpp.
|
inline |
Sets sort order for column sorting.
asc | set to true to sort in ascending order, false to sort in descending order |
Definition at line 45 of file qgscomposerattributetablev2.h.
|
inline |
Sets column number to sort by.
col | column number for sorting |
Definition at line 40 of file qgscomposerattributetablev2.h.