Qt Mobility Reference Documentation

QLandmarkDistanceSort Class Reference

The QLandmarkDistanceSort class is used to sort landmarks by distance from a given coordinate. More...

 #include <QLandmarkDistanceSort>

Inherits QLandmarkSortOrder.


Public Functions

QLandmarkDistanceSort ( const QGeoCoordinate & coordinate = QGeoCoordinate(), Qt::SortOrder direction = Qt::AscendingOrder )
QLandmarkDistanceSort ( const QLandmarkSortOrder & other )
virtual ~QLandmarkDistanceSort ()
QGeoCoordinate coordinate () const
void setCoordinate ( const QGeoCoordinate & coordinate )

Detailed Description

The QLandmarkDistanceSort class is used to sort landmarks by distance from a given coordinate.


Member Function Documentation

QLandmarkDistanceSort::QLandmarkDistanceSort ( const QGeoCoordinate & coordinate = QGeoCoordinate(), Qt::SortOrder direction = Qt::AscendingOrder )

Creates a sort order that sorts landmarks by distance from a given coordinate. If the direction is Qt::Ascending, it means that landmarks are listed in increasing order of distance.

QLandmarkDistanceSort::QLandmarkDistanceSort ( const QLandmarkSortOrder & other )

Constructs a copy of other if possible, otherwise constructs a new distance sort order.

QLandmarkDistanceSort::~QLandmarkDistanceSort () [virtual]

Destroys the sort order.

QGeoCoordinate QLandmarkDistanceSort::coordinate () const

Returns the coordinate to sort distances from.

See also setCoordinate().

void QLandmarkDistanceSort::setCoordinate ( const QGeoCoordinate & coordinate )

Sets the coordinate to sort distances from.

See also coordinate().


Copyright © 2009-2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.1.0