summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxintegration.cpp
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire@kdab.com>2012-03-29 16:30:19 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-02 21:02:56 +0200
commitf5bc6db6c3fa58e2bdc615a51709f7970129a2af (patch)
tree8397eeea868e1eb6b5b2820faa8a6208807bd449 /src/plugins/platforms/qnx/qqnxintegration.cpp
parent5dd7cd5316dc9afd0e99d5c0e17a432a9cb6d33a (diff)
Add a native interface with the possibility to query the window group
This is needed for QtMultimedia, as it uses the native mmrenderer API which expects to get passed the window group when creating a video overlay window. Change-Id: I07d790e6e20714741c04917068b41b71b8939fa4 Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxintegration.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxintegration.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/platforms/qnx/qqnxintegration.cpp b/src/plugins/platforms/qnx/qqnxintegration.cpp
index 40e29981ce..faec340347 100644
--- a/src/plugins/platforms/qnx/qqnxintegration.cpp
+++ b/src/plugins/platforms/qnx/qqnxintegration.cpp
@@ -43,6 +43,7 @@
#include "qqnxeventthread.h"
#include "qqnxglbackingstore.h"
#include "qqnxglcontext.h"
+#include "qqnxnativeinterface.h"
#include "qqnxnavigatoreventhandler.h"
#include "qqnxrasterbackingstore.h"
#include "qqnxscreen.h"
@@ -85,6 +86,7 @@ QQnxIntegration::QQnxIntegration()
, m_fontDatabase(new QGenericUnixFontDatabase())
, m_paintUsingOpenGL(false)
, m_eventDispatcher(createUnixEventDispatcher())
+ , m_nativeInterface(new QQnxNativeInterface())
, m_services(0)
, m_screenEventHandler(new QQnxScreenEventHandler())
#ifndef QT_NO_CLIPBOARD
@@ -149,6 +151,8 @@ QQnxIntegration::~QQnxIntegration()
delete m_screenEventHandler;
+ delete m_nativeInterface;
+
// Destroy input context
delete m_inputContext;
@@ -259,6 +263,11 @@ QAbstractEventDispatcher *QQnxIntegration::guiThreadEventDispatcher() const
return m_eventDispatcher;
}
+QPlatformNativeInterface *QQnxIntegration::nativeInterface() const
+{
+ return m_nativeInterface;
+}
+
#ifndef QT_NO_CLIPBOARD
QPlatformClipboard *QQnxIntegration::clipboard() const
{