summaryrefslogtreecommitdiff
path: root/examples/declarative/flickr/flickrmobile/GeoTab.qml
diff options
context:
space:
mode:
authorAlex Wilson <alex.wilson@nokia.com>2011-12-13 16:24:17 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-13 07:29:53 +0100
commit9655258398566a408a90d820ad9988b437b8de3f (patch)
treea3dbfeb9794eae8d885a2e824f38e45320a27c2b /examples/declarative/flickr/flickrmobile/GeoTab.qml
parent78ebb1fb73b957ed8a7bfcd92dcf738bac691d4c (diff)
downloadqtlocation-9655258398566a408a90d820ad9988b437b8de3f.tar.gz
Making Flickr example work again after API changes
* New import line for XmlListModel in QtQuick * Using PositionSource#supportedPositioningMethod rather than the deprecated #positioningMethod Change-Id: Iac2c297b3665dbb5658d09d128916f6149ac0041 Reviewed-by: David Laing <david.laing@nokia.com>
Diffstat (limited to 'examples/declarative/flickr/flickrmobile/GeoTab.qml')
-rw-r--r--examples/declarative/flickr/flickrmobile/GeoTab.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/declarative/flickr/flickrmobile/GeoTab.qml b/examples/declarative/flickr/flickrmobile/GeoTab.qml
index e8de14f6..3588f1e1 100644
--- a/examples/declarative/flickr/flickrmobile/GeoTab.qml
+++ b/examples/declarative/flickr/flickrmobile/GeoTab.qml
@@ -73,9 +73,9 @@ Rectangle {
anchors {left: parent.left; leftMargin: 5}
y: 3; height: 32; width: parent.width - 10
onClicked: {
- if (positionSource.positioningMethod == PositionSource.NoPositioningMethod) {
+ if (positionSource.supportedPositioningMethod == PositionSource.NoPositioningMethod) {
positionSource.nmeaSource = "nmealog.txt";
- sourceText.text = "(filesource): " + printableMethod(positionSource.positioningMethod);
+ sourceText.text = "(filesource): " + printableMethod(positionSource.supportedPositioningMethod);
}
positionSource.update();
}
@@ -123,6 +123,6 @@ Rectangle {
}
Text {id: sourceText; color: "white"; font.bold: true;
anchors {left: planet.right; leftMargin: 5; verticalCenter: planet.verticalCenter}
- text: "Source: " + printableMethod(positionSource.positioningMethod); style: Text.Raised; styleColor: "black";
+ text: "Source: " + printableMethod(positionSource.supportedPositioningMethod); style: Text.Raised; styleColor: "black";
}
}