Fix pps and imf support for QNX builds
Change from config to feature in the json and pro files. Change-Id: I58ddac3c4ad739253bae010f1d5023fc1d481047 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
parent
b0938cb6c1
commit
3af9d77431
@ -509,7 +509,7 @@
|
||||
"label": "PPS",
|
||||
"emitIf": "config.qnx",
|
||||
"condition": "libs.pps",
|
||||
"output": [ "privateConfig" ]
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"qeventtransition": {
|
||||
"label": "QEventTransition class",
|
||||
|
@ -187,7 +187,7 @@ vxworks {
|
||||
kernel/qfunctions_vxworks.h
|
||||
}
|
||||
|
||||
qqnx_pps {
|
||||
qnx:qtConfig(qqnx_pps) {
|
||||
QMAKE_USE_PRIVATE += pps
|
||||
SOURCES += \
|
||||
kernel/qppsattribute.cpp \
|
||||
|
@ -956,7 +956,7 @@
|
||||
"label": "IMF",
|
||||
"emitIf": "config.qnx",
|
||||
"condition": "libs.imf",
|
||||
"output": [ "privateConfig" ]
|
||||
"output": [ "privateFeature" ]
|
||||
},
|
||||
"integrityfb": {
|
||||
"label": "INTEGRITY framebuffer",
|
||||
|
@ -81,26 +81,26 @@ qtConfig(opengles2) {
|
||||
QMAKE_USE += opengl_es2 egl
|
||||
}
|
||||
|
||||
CONFIG(qqnx_pps) {
|
||||
DEFINES += QQNX_PPS
|
||||
|
||||
SOURCES += qqnxclipboard.cpp \
|
||||
qqnxbuttoneventnotifier.cpp \
|
||||
qtConfig(qqnx_pps) {
|
||||
SOURCES += qqnxbuttoneventnotifier.cpp \
|
||||
qqnxnavigatorpps.cpp \
|
||||
qqnxnavigatoreventnotifier.cpp \
|
||||
qqnxvirtualkeyboardpps.cpp
|
||||
|
||||
HEADERS += qqnxclipboard.h \
|
||||
qqnxbuttoneventnotifier.h \
|
||||
HEADERS += qqnxbuttoneventnotifier.h \
|
||||
qqnxnavigatorpps.h \
|
||||
qqnxnavigatoreventnotifier.h \
|
||||
qqnxvirtualkeyboardpps.h
|
||||
|
||||
QMAKE_USE += pps
|
||||
!contains(DEFINES, QT_NO_CLIPBOARD): LIBS += -lclipboard
|
||||
|
||||
CONFIG(qqnx_imf) {
|
||||
DEFINES += QQNX_IMF
|
||||
qtConfig(clipboard) {
|
||||
SOURCES += qqnxclipboard.cpp
|
||||
HEADERS += qqnxclipboard.h
|
||||
LIBS += -lclipboard
|
||||
}
|
||||
|
||||
qtConfig(qqnx_imf) {
|
||||
HEADERS += qqnxinputcontext_imf.h
|
||||
SOURCES += qqnxinputcontext_imf.cpp
|
||||
} else {
|
||||
|
@ -56,17 +56,16 @@
|
||||
#include "qqnxeglwindow.h"
|
||||
#endif
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
#include "qqnxnavigatorpps.h"
|
||||
#include "qqnxnavigatoreventnotifier.h"
|
||||
#include "qqnxvirtualkeyboardpps.h"
|
||||
#endif
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
# include "qqnxbuttoneventnotifier.h"
|
||||
# include "qqnxclipboard.h"
|
||||
|
||||
# if defined(QQNX_IMF)
|
||||
# if QT_CONFIG(qqnx_imf)
|
||||
# include "qqnxinputcontext_imf.h"
|
||||
# else
|
||||
# include "qqnxinputcontext_noimf.h"
|
||||
@ -126,7 +125,7 @@ QQnxIntegration::QQnxIntegration(const QStringList ¶mList)
|
||||
, m_screenEventThread(0)
|
||||
, m_navigatorEventHandler(new QQnxNavigatorEventHandler())
|
||||
, m_virtualKeyboard(0)
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
, m_navigatorEventNotifier(0)
|
||||
, m_inputContext(0)
|
||||
, m_buttonsNotifier(new QQnxButtonEventNotifier())
|
||||
@ -150,7 +149,7 @@ QQnxIntegration::QQnxIntegration(const QStringList ¶mList)
|
||||
Q_SCREEN_CRITICALERROR(screen_create_context(&ms_screenContext, SCREEN_APPLICATION_CONTEXT),
|
||||
"Failed to create screen context");
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
// Create/start navigator event notifier
|
||||
m_navigatorEventNotifier = new QQnxNavigatorEventNotifier(m_navigatorEventHandler);
|
||||
|
||||
@ -168,7 +167,7 @@ QQnxIntegration::QQnxIntegration(const QStringList ¶mList)
|
||||
m_screenEventThread = new QQnxScreenEventThread(ms_screenContext, m_screenEventHandler);
|
||||
m_screenEventThread->start();
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
// Create/start the keyboard class.
|
||||
m_virtualKeyboard = new QQnxVirtualKeyboardPps();
|
||||
|
||||
@ -177,7 +176,7 @@ QQnxIntegration::QQnxIntegration(const QStringList ¶mList)
|
||||
QMetaObject::invokeMethod(m_virtualKeyboard, "start", Qt::QueuedConnection);
|
||||
#endif
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
m_navigator = new QQnxNavigatorPps();
|
||||
#endif
|
||||
|
||||
@ -192,16 +191,16 @@ QQnxIntegration::QQnxIntegration(const QStringList ¶mList)
|
||||
QObject::connect(m_virtualKeyboard, SIGNAL(heightChanged(int)),
|
||||
primaryDisplay(), SLOT(keyboardHeightChanged(int)));
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
// Set up the input context
|
||||
m_inputContext = new QQnxInputContext(this, *m_virtualKeyboard);
|
||||
#if defined(QQNX_IMF)
|
||||
#if QT_CONFIG(qqnx_imf)
|
||||
m_screenEventHandler->addScreenEventFilter(m_inputContext);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
// delay invocation of start() to the time the event loop is up and running
|
||||
// needed to have the QThread internals of the main thread properly initialized
|
||||
QMetaObject::invokeMethod(m_buttonsNotifier, "start", Qt::QueuedConnection);
|
||||
@ -224,7 +223,7 @@ QQnxIntegration::~QQnxIntegration()
|
||||
#endif
|
||||
|
||||
// Stop/destroy navigator event notifier
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
delete m_navigatorEventNotifier;
|
||||
#endif
|
||||
delete m_navigatorEventHandler;
|
||||
@ -248,7 +247,7 @@ QQnxIntegration::~QQnxIntegration()
|
||||
QQnxGLContext::shutdownContext();
|
||||
#endif
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
// Destroy the hardware button notifier
|
||||
delete m_buttonsNotifier;
|
||||
|
||||
@ -318,7 +317,7 @@ QPlatformOpenGLContext *QQnxIntegration::createPlatformOpenGLContext(QOpenGLCont
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
QPlatformInputContext *QQnxIntegration::inputContext() const
|
||||
{
|
||||
qIntegrationDebug();
|
||||
@ -361,7 +360,7 @@ QPlatformClipboard *QQnxIntegration::clipboard() const
|
||||
{
|
||||
qIntegrationDebug();
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
if (!m_clipboard)
|
||||
m_clipboard = new QQnxClipboard;
|
||||
#endif
|
||||
|
@ -41,7 +41,7 @@
|
||||
#define QQNXINTEGRATION_H
|
||||
|
||||
#include <qpa/qplatformintegration.h>
|
||||
|
||||
#include <private/qtguiglobal_p.h>
|
||||
#include <QtCore/qmutex.h>
|
||||
|
||||
#include <screen/screen.h>
|
||||
@ -61,7 +61,7 @@ class QQnxServices;
|
||||
|
||||
class QSimpleDrag;
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
class QQnxInputContext;
|
||||
class QQnxNavigatorEventNotifier;
|
||||
class QQnxButtonEventNotifier;
|
||||
@ -96,7 +96,7 @@ public:
|
||||
QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context) const override;
|
||||
#endif
|
||||
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
QPlatformInputContext *inputContext() const override;
|
||||
#endif
|
||||
|
||||
@ -143,7 +143,7 @@ private:
|
||||
QQnxScreenEventThread *m_screenEventThread;
|
||||
QQnxNavigatorEventHandler *m_navigatorEventHandler;
|
||||
QQnxAbstractVirtualKeyboard *m_virtualKeyboard;
|
||||
#if defined(QQNX_PPS)
|
||||
#if QT_CONFIG(qqnx_pps)
|
||||
QQnxNavigatorEventNotifier *m_navigatorEventNotifier;
|
||||
QQnxInputContext *m_inputContext;
|
||||
QQnxButtonEventNotifier *m_buttonsNotifier;
|
||||
|
Loading…
Reference in New Issue
Block a user