summaryrefslogtreecommitdiffstats
path: root/examples/location/mapviewer/mapviewer.qml
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-05-01 00:37:59 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-05-26 13:24:31 +0000
commit71af9f157462b0bef3ac5b6e8472dd2f1cc14286 (patch)
treec71c2d1067c1e4880a39ca9dbc3a2809eb1f8324 /examples/location/mapviewer/mapviewer.qml
parent265d3d613aaeb9e3c176abf32a1d37c171fe9f21 (diff)
Fix typo and remove appPath from mapviewer
appDirPath was used by videoitem which was removed during earlier rewrite of the mapviewer example. Change-Id: I7ac49accbe93fd09c125a45fbeafde660beabf3a Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/location/mapviewer/mapviewer.qml')
-rw-r--r--examples/location/mapviewer/mapviewer.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/location/mapviewer/mapviewer.qml b/examples/location/mapviewer/mapviewer.qml
index 491bc47f..fb9d462d 100644
--- a/examples/location/mapviewer/mapviewer.qml
+++ b/examples/location/mapviewer/mapviewer.qml
@@ -137,10 +137,9 @@ ApplicationWindow {
function getPlugins()
{
var plugin = Qt.createQmlObject ('import QtLocation 5.3; Plugin {}', appWindow)
- var tempPlugin
var myArray = new Array()
- for (var i = 0; i<plugin.availableServiceProviders.length; i++){
- tempPlugin = Qt.createQmlObject ('import QtLocation 5.3; Plugin {name: "' + plugin.availableServiceProviders[i]+ '"}', appWindow)
+ for (var i = 0; i<plugin.availableServiceProviders.length; i++) {
+ var tempPlugin = Qt.createQmlObject ('import QtLocation 5.3; Plugin {name: "' + plugin.availableServiceProviders[i]+ '"}', appWindow)
if (tempPlugin.supportsMapping())
myArray.push(tempPlugin.name)
}
@@ -148,7 +147,7 @@ ApplicationWindow {
return myArray
}
- function initializeProvders(pluginParameters)
+ function initializeProviders(pluginParameters)
{
var parameters = new Array()
for (var prop in pluginParameters){