|
QGIS API Documentation
2.6.0-Brighton
|
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 | setSortColumn (int col) |
| Sets column number to sort by. | |
| void | setAscending (bool asc) |
| Sets sort order for column sorting. | |
Helper class for sorting tables, takes into account sorting column and ascending / descending.
| QgsComposerAttributeTableCompareV2::QgsComposerAttributeTableCompareV2 | ( | ) |
| bool QgsComposerAttributeTableCompareV2::operator() | ( | const QgsComposerTableRow & | m1, |
| const QgsComposerTableRow & | m2 | ||
| ) |
|
inline |
Sets sort order for column sorting.
| asc | set to true to sort in ascending order, false to sort in descending order |
|
inline |
Sets column number to sort by.
| col | column number for sorting |
1.8.1.2