Fix compile error with latest qt5 libresourceqt
authorMohammed Sameer <msameer@foolab.org>
Sun, 18 Aug 2013 21:13:02 +0000 (00:13 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sun, 18 Aug 2013 21:13:02 +0000 (00:13 +0300)
DBUSConnectionEventLoop::getInstance() has been removed
It's also not a global static object anymore so it should be fine
to rely on it being instantiated in the right thread

src/cameraresources.cpp

index 4e936e5..3f7da5f 100644 (file)
@@ -19,7 +19,9 @@
  */
 
 #include "cameraresources.h"
+#if defined(QT4)
 #include <dbusconnectioneventloop.h>
+#endif
 #include <QDebug>
 
 #define APPLICATION_CLASS "camera"
@@ -29,7 +31,10 @@ CameraResources::CameraResources(QObject *parent) :
   m_worker(new CameraResourcesWorker) {
 
   m_worker->moveToThread(&m_thread);
+
+#if defined(QT4)
   DBUSConnectionEventLoop::getInstance().moveToThread(&m_thread);
+#endif
 
   QObject::connect(&m_thread, SIGNAL(started()), m_worker, SLOT(init()));
   m_thread.start();