Quantum GIS API Documentation  1.8
Public Member Functions | Private Attributes
QgsComposerAttributeTableCompare Class Reference

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

#include <qgscomposerattributetable.h>

List of all members.

Public Member Functions

 QgsComposerAttributeTableCompare ()
bool operator() (const QgsAttributeMap &m1, const QgsAttributeMap &m2)
void setSortColumn (int col)
void setAscending (bool asc)

Private Attributes

int mCurrentSortColumn
bool mAscending

Detailed Description

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

Definition at line 27 of file qgscomposerattributetable.h.


Constructor & Destructor Documentation

Definition at line 23 of file qgscomposerattributetable.cpp.


Member Function Documentation

bool QgsComposerAttributeTableCompare::operator() ( const QgsAttributeMap m1,
const QgsAttributeMap m2 
)

Definition at line 28 of file qgscomposerattributetable.cpp.

References mAscending, and mCurrentSortColumn.

Definition at line 33 of file qgscomposerattributetable.h.

References mAscending.

Referenced by QgsComposerAttributeTable::getFeatureAttributes().


Member Data Documentation

Definition at line 36 of file qgscomposerattributetable.h.

Referenced by operator()(), and setAscending().

Definition at line 35 of file qgscomposerattributetable.h.

Referenced by operator()(), and setSortColumn().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines