diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2013-10-28 16:14:23 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-30 13:50:28 +0100 |
commit | a3e4a69a17a68e1b6bf3a9254164cac0eb2e71b5 (patch) | |
tree | 5359197b90432c3dc643870ecafa4e0518681a42 /src/location/doc/snippets | |
parent | 9f58f8cbf859b2bc7225ee8e0c841200c72e47b4 (diff) | |
download | qtlocation-a3e4a69a17a68e1b6bf3a9254164cac0eb2e71b5.tar.gz |
Add QGeoPositionInfoSource::NoPositioningMethods enum value
This simplifies various position backend implementations
as they don't have to cast 0 to QGeoPositionInfoSource::PositioningMethods
At the same time we synchronize the same QML enum and its value name.
Change-Id: Ic0b258161a6319da238b265ad5d9926349f461f1
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/location/doc/snippets')
-rw-r--r-- | src/location/doc/snippets/declarative/declarative-location.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location/doc/snippets/declarative/declarative-location.qml b/src/location/doc/snippets/declarative/declarative-location.qml index b98de5a7..3128691a 100644 --- a/src/location/doc/snippets/declarative/declarative-location.qml +++ b/src/location/doc/snippets/declarative/declarative-location.qml @@ -71,11 +71,11 @@ Rectangle { Text {text: "speedValid: " + positionSource.position.speedValid} } function printableMethod(method) { - if (method == PositionSource.SatellitePositioningMethod) + if (method == PositionSource.SatellitePositioningMethods) return "Satellite"; - else if (method == PositionSource.NoPositioningMethod) + else if (method == PositionSource.NoPositioningMethods) return "Not available" - else if (method == PositionSource.NonSatellitePositioningMethod) + else if (method == PositionSource.NonSatellitePositioningMethods) return "Non-satellite" else if (method == PositionSource.AllPositioningMethods) return "All/multiple" |