diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-08-26 10:55:44 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-09-03 11:27:34 +0000 |
commit | ffb10da5ad4d3ff200fbca9438538cc5102296e3 (patch) | |
tree | 553a010c2c64756247125ae4cffb51a2c254b468 /examples/positioning/geoflickr/flickrmobile | |
parent | db19bd6920a0fac38202532179788f37248b079a (diff) | |
download | qtlocation-ffb10da5ad4d3ff200fbca9438538cc5102296e3.tar.gz |
Make it a bit easier to detect problems when using GeoFlickr example
Prints the error and reports the failure back to the user.
Change-Id: Ic11d3e1fdb54f411c1802de448017155b1a08df5
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
Diffstat (limited to 'examples/positioning/geoflickr/flickrmobile')
-rw-r--r-- | examples/positioning/geoflickr/flickrmobile/GeoTab.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/positioning/geoflickr/flickrmobile/GeoTab.qml b/examples/positioning/geoflickr/flickrmobile/GeoTab.qml index 1226120d..4505319f 100644 --- a/examples/positioning/geoflickr/flickrmobile/GeoTab.qml +++ b/examples/positioning/geoflickr/flickrmobile/GeoTab.qml @@ -94,6 +94,15 @@ Rectangle { id: positionSource onPositionChanged: { planet.source = "images/sun.png"; } + onSourceErrorChanged: { + if (sourceError == PositionSource.NoError) + return + + console.log("Source error: " + sourceError) + activityText.fadeOut = true + stop() + } + onUpdateTimeout: { activityText.fadeOut = true } |