QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
QgsComposerAttributeTableCompare Class Reference

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 setSortColumn (int col)
 Sets column number to sort by. More...
 
void setAscending (bool asc)
 Sets sort order for column sorting. More...
 

Detailed Description

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

Constructor & Destructor Documentation

QgsComposerAttributeTableCompare::QgsComposerAttributeTableCompare ( )

Member Function Documentation

bool QgsComposerAttributeTableCompare::operator() ( const QgsAttributeMap m1,
const QgsAttributeMap m2 
)
void QgsComposerAttributeTableCompare::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
void QgsComposerAttributeTableCompare::setSortColumn ( int  col)
inline

Sets column number to sort by.

Parameters
colcolumn number for sorting

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