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!=().