QGIS API Documentation  2.18.3-Las Palmas (77b8c3d)
Public Member Functions | List of all members
QgsComposerAttributeTableCompareV2 Class Reference

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...
 

Detailed Description

Helper class for sorting tables, takes into account sorting column and ascending / descending.

Definition at line 30 of file qgscomposerattributetablev2.h.

Constructor & Destructor Documentation

QgsComposerAttributeTableCompareV2::QgsComposerAttributeTableCompareV2 ( )

Definition at line 32 of file qgscomposerattributetablev2.cpp.

Member Function Documentation

bool QgsComposerAttributeTableCompareV2::operator() ( const QgsComposerTableRow m1,
const QgsComposerTableRow m2 
)

Definition at line 39 of file qgscomposerattributetablev2.cpp.

void QgsComposerAttributeTableCompareV2::setAscending ( bool  asc)
inline

Sets sort order for column sorting.

Parameters
ascset to true to sort in ascending order, false to sort in descending order

Definition at line 44 of file qgscomposerattributetablev2.h.

void QgsComposerAttributeTableCompareV2::setSortColumn ( int  col)
inline

Sets column number to sort by.

Parameters
colcolumn number for sorting

Definition at line 39 of file qgscomposerattributetablev2.h.


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