summaryrefslogtreecommitdiffstats
path: root/tools/qml
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2012-03-14 14:00:35 +0000
committerQt by Nokia <qt-info@nokia.com>2012-04-05 15:48:53 +0200
commit6ba88015687ddd801bffa32a7c9622a5573e8541 (patch)
treeddd40f505f5b42eef4a13b1a1ad9d438842d0824 /tools/qml
parentba166b618e2360d2fa7e927adf239d737a443f5a (diff)
Fixed build failure in tools/qml for Harmattan
Change-Id: I6fb26f2da3ff78dd20d06941ae1aedd059f116ff Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tools/qml')
-rw-r--r--tools/qml/deviceorientation_harmattan.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/qml/deviceorientation_harmattan.cpp b/tools/qml/deviceorientation_harmattan.cpp
index d415f51fa2..ecd9d2d06d 100644
--- a/tools/qml/deviceorientation_harmattan.cpp
+++ b/tools/qml/deviceorientation_harmattan.cpp
@@ -43,13 +43,13 @@
#include <QtDBus>
#include <QDebug>
-#define ORIENTATION_SERVICE "com.nokia.SensorService"
-#define ORIENTATION_PATH "/org/maemo/contextkit/Screen/TopEdge"
-#define CONTEXT_INTERFACE "org.maemo.contextkit.Property"
-#define CONTEXT_CHANGED "ValueChanged"
-#define CONTEXT_SUBSCRIBE "Subscribe"
-#define CONTEXT_UNSUBSCRIBE "Unsubscribe"
-#define CONTEXT_GET "Get"
+#define ORIENTATION_SERVICE QLatin1String("com.nokia.SensorService")
+#define ORIENTATION_PATH QLatin1String("/org/maemo/contextkit/Screen/TopEdge")
+#define CONTEXT_INTERFACE QLatin1String("org.maemo.contextkit.Property")
+#define CONTEXT_CHANGED QLatin1String("ValueChanged")
+#define CONTEXT_SUBSCRIBE QLatin1String("Subscribe")
+#define CONTEXT_UNSUBSCRIBE QLatin1String("Unsubscribe")
+#define CONTEXT_GET QLatin1String("Get")
class HarmattanOrientation : public DeviceOrientation
@@ -136,13 +136,13 @@ private Q_SLOTS:
private:
static Orientation toOrientation(const QString &nativeOrientation)
{
- if (nativeOrientation == "top")
+ if (nativeOrientation == QLatin1String("top"))
return Landscape;
- else if (nativeOrientation == "left")
+ else if (nativeOrientation == QLatin1String("left"))
return Portrait;
- else if (nativeOrientation == "bottom")
+ else if (nativeOrientation == QLatin1String("bottom"))
return LandscapeInverted;
- else if (nativeOrientation == "right")
+ else if (nativeOrientation == QLatin1String("right"))
return PortraitInverted;
return UnknownOrientation;
}