The QLandmarkSortOrder class serves as a base class for the different sort order types and by itself represents no sorting. More...
#include <QLandmarkSortOrder>
Inherited by: QLandmarkNameSort.
This class was introduced in Qt Mobility 1.1.
enum | SortType { NoSort, NameSort } |
QLandmarkSortOrder () | |
QLandmarkSortOrder ( const QLandmarkSortOrder & other ) | |
virtual | ~QLandmarkSortOrder () |
Qt::SortOrder | direction () const |
void | setDirection ( Qt::SortOrder direction ) |
SortType | type () const |
bool | operator!= ( const QLandmarkSortOrder & other ) const |
QLandmarkSortOrder & | operator= ( const QLandmarkSortOrder & other ) |
bool | operator== ( const QLandmarkSortOrder & other ) const |
The QLandmarkSortOrder class serves as a base class for the different sort order types and by itself represents no sorting.
The sort orders define how a list of landmarks should be ordered when they searched using a QLandmarkManager or one of the landmark request classes. (For sorting by distance see the QLandmarkProximityFilter).
Defines the type of sort order.
Constant | Value | Description |
---|---|---|
QLandmarkSortOrder::NoSort | 0 | No sorting is applied |
QLandmarkSortOrder::NameSort | 1 | Sorts landmarks by name. |
Constructs a landmark sort order.
The type of the sort order is NoSort.
Constructs a copy of other.
Destroys the sort order
Returns the direction of the sort order.
This function was introduced in Qt Mobility 1.1.
See also setDirection().
Sets the direction of the sort order.
This function was introduced in Qt Mobility 1.1.
See also direction().
Returns the type of sort.
This function was introduced in Qt Mobility 1.1.
Returns true if this sort order is not identical to other.
This function was introduced in Qt Mobility 1.1.
See also operator==().
Assigns other to this sort order and returns a reference to this sort order.
This function was introduced in Qt Mobility 1.1.
Returns true if this sort order is identical to other.
This function was introduced in Qt Mobility 1.1.
See also operator!=().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.