summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/blackberry/main.cpp
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2012-07-19 15:46:09 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-24 11:23:25 +0200
commit1760d541f35c851b6c08bc617a89cb16a1d8f975 (patch)
tree752b016c18fb5628e2c4b1b6ce5e16ab318c814b /src/plugins/sensors/blackberry/main.cpp
parent0de0ead684a322103ec9cff3dcf5153ef4c1545c (diff)
Blackberry: Remove QtGui dependency
In the Blackberry backend, we can't depend on QtGui and especially not on the Blackberry QPA plugin, as Cascades uses QCoreApplication, not QGuiApplication. All QtGui functions are replaced with a new GuiHelper class, that internally uses BPS. Change-Id: Ia508e8b397050676c68612340d33cdbf57041076 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/plugins/sensors/blackberry/main.cpp')
-rw-r--r--src/plugins/sensors/blackberry/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/sensors/blackberry/main.cpp b/src/plugins/sensors/blackberry/main.cpp
index aba02aa5..6e38138c 100644
--- a/src/plugins/sensors/blackberry/main.cpp
+++ b/src/plugins/sensors/blackberry/main.cpp
@@ -51,6 +51,7 @@
#include "bbproximitysensor.h"
#include "bbrotationsensor.h"
#include "bbtemperaturesensor.h"
+#include "bbguihelper.h"
#include <qsensormanager.h>
#include <qsensorplugin.h>
@@ -136,6 +137,7 @@ public:
if (sensor->identifier() == bbTemperatureSensorId)
backend = new BbTemperatureSensor(sensor);
backend->initSensorInfo();
+ backend->setGuiHelper(&m_guiHelper);
return backend;
}
@@ -144,6 +146,8 @@ private:
{
return QFile::exists(devicePath);
}
+
+ BbGuiHelper m_guiHelper;
};
#include "main.moc"