6#if !defined(QT_NO_OPENGL)
13#include "qqnxinputcontext_imf.h"
18#if !defined(QT_NO_OPENGL)
19#include <QtGui/QOpenGLContext>
22#include <QtGui/QScreen>
23#include <QtGui/QWindow>
27using namespace Qt::StringLiterals;
30 : m_integration(integration)
36 if (resource ==
"windowGroup" && window && window->screen()) {
39 screen_window_t screenWindow =
reinterpret_cast<screen_window_t>(window->winId());
40 QQnxWindow *qnxWindow = screen->findWindow(screenWindow);
43 return qnxWindow ?
const_cast<
char *>(qnxWindow->groupName().constData()) : 0;
52 if (resource ==
"QObject*" && screen)
53 return static_cast<QObject*>(
static_cast<
QQnxScreen*>(screen->handle()));
60 if (resource ==
"screenContext")
61 return m_integration->screenContext();
64 if (resource.toLower() ==
"egldisplay")
65 return m_integration->eglDisplay();
71#if !defined(QT_NO_OPENGL)
74 if (resource ==
"eglcontext" && context)
75 return static_cast<
QQnxGLContext*>(context->handle())->eglContext();
85 if (name ==
"qnxWindowGroup"_L1) {
87 qnxWindow->joinWindowGroup(QByteArray());
88 else if (value.canConvert<QByteArray>())
89 qnxWindow->joinWindowGroup(value.toByteArray());
96 if (resource ==
"blackberryIMFSetHighlightColor")
97 return reinterpret_cast<NativeResourceForIntegrationFunction>(QQnxInputContext::setHighlightColor);
98 if (resource ==
"blackberryIMFCheckSpelling")
99 return reinterpret_cast<NativeResourceForIntegrationFunction>(QQnxInputContext::checkSpelling);
void * nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override
void * nativeResourceForWindow(const QByteArray &resource, QWindow *window) override
void * nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override
QQnxNativeInterface(QQnxIntegration *integration)
void * nativeResourceForIntegration(const QByteArray &resource) override
NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) override
void setWindowProperty(QPlatformWindow *window, const QString &name, const QVariant &value) override
Sets a window property with name to value.
The QQnxWindow is the base class of the various classes used as instances of QPlatformWindow in the Q...