QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
QgsComposerAttributeTableCompare Class Reference

Helper class for sorting, 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)
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

QgsComposerAttributeTableCompare::QgsComposerAttributeTableCompare ( )

Definition at line 23 of file qgscomposerattributetable.cpp.

Member Function Documentation

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

Definition at line 29 of file qgscomposerattributetable.cpp.

References mAscending, and mCurrentSortColumn.

void QgsComposerAttributeTableCompare::setAscending ( bool  asc)
inline
void QgsComposerAttributeTableCompare::setSortColumn ( int  col)
inline

Member Data Documentation

bool QgsComposerAttributeTableCompare::mAscending
private

Definition at line 36 of file qgscomposerattributetable.h.

Referenced by operator()().

int QgsComposerAttributeTableCompare::mCurrentSortColumn
private

Definition at line 35 of file qgscomposerattributetable.h.

Referenced by operator()().


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