From 523b619b6b356d744a271b39b68ab48fb80a7a8a Mon Sep 17 00:00:00 2001 From: Mohammed Sameer Date: Mon, 31 Dec 2012 22:44:56 +0200 Subject: [PATCH] Use Qtm namespace for QtMobility.systeminfo to resolve the BatteryInfo conflict --- qml/main.qml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index 63a18b6..d30139a 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -24,13 +24,9 @@ import QtQuick 1.1 import com.nokia.meego 1.1 import com.nokia.extras 1.1 import QtCamera 1.0 -import QtMobility.systeminfo 1.2 -import QtMobility.location 1.2 - -// TODO: this has to be below QtMobility.systeminfo -// We define an element called BatteryInfo which conflicts with the one defined by QtMobility -// Thus we have to be the last so our element can be used instead of the one from QtMobility import CameraPlus 1.0 +import QtMobility.systeminfo 1.2 as Qtm +import QtMobility.location 1.2 // TODO: flash not ready (battery low or flash not ready message) // TODO: portrait/landscape @@ -119,7 +115,7 @@ PageStackWindow { camera: cam } - DeviceInfo { + Qtm.DeviceInfo { id: deviceInfo } -- 2.25.1