QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Helper class for sorting tables, takes into account sorting column and ascending / descending. More...
#include <qgscomposerattributetable.h>
Public Member Functions | |
QgsComposerAttributeTableCompare () | |
bool | operator() (const QgsAttributeMap &m1, const QgsAttributeMap &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 30 of file qgscomposerattributetable.h.
QgsComposerAttributeTableCompare::QgsComposerAttributeTableCompare | ( | ) |
Definition at line 27 of file qgscomposerattributetable.cpp.
bool QgsComposerAttributeTableCompare::operator() | ( | const QgsAttributeMap & | m1, |
const QgsAttributeMap & | m2 | ||
) |
Definition at line 34 of file qgscomposerattributetable.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 44 of file qgscomposerattributetable.h.
|
inline |
Sets column number to sort by.
col | column number for sorting |
Definition at line 39 of file qgscomposerattributetable.h.