From ffb10da5ad4d3ff200fbca9438538cc5102296e3 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Wed, 26 Aug 2015 10:55:44 +0200 Subject: 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 --- examples/positioning/geoflickr/flickrmobile/GeoTab.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'examples') 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 } -- cgit v1.2.3