summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx
diff options
context:
space:
mode:
authorMarianne Yrjänä <marianne.yrjana@qt.io>2021-03-09 11:44:16 +0200
committerMarianne Yrjänä <marianne.yrjana@qt.io>2021-04-13 16:18:53 +0300
commit9c6721c106cfb593841e99b9670a3ba936254206 (patch)
treee649af4103344d8320e49238d1c707de5c68227d /src/plugins/platforms/qnx
parentd84bf703b505db470e5c7916e3cd630c3e456cef (diff)
Add QNX qpa to builds
Task-number: QTBUG-91234 Pick-to: 6.1 6.1.0 Change-Id: I978aff101ce29d2df74ced801911426ccd56e997 Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: James McDonnell <jmcdonnell@blackberry.com>
Diffstat (limited to 'src/plugins/platforms/qnx')
-rw-r--r--src/plugins/platforms/qnx/.prev_CMakeLists.txt91
-rw-r--r--src/plugins/platforms/qnx/CMakeLists.txt92
-rw-r--r--src/plugins/platforms/qnx/qqnxwindow.cpp8
3 files changed, 188 insertions, 3 deletions
diff --git a/src/plugins/platforms/qnx/.prev_CMakeLists.txt b/src/plugins/platforms/qnx/.prev_CMakeLists.txt
new file mode 100644
index 0000000000..ad0731b840
--- /dev/null
+++ b/src/plugins/platforms/qnx/.prev_CMakeLists.txt
@@ -0,0 +1,91 @@
+# Generated from qnx.pro.
+
+#####################################################################
+## QQnxIntegrationPlugin Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QQnxIntegrationPlugin
+ OUTPUT_NAME qqnx
+ TYPE platforms
+ SOURCES
+ main.cpp main.h
+ qqnxabstractcover.h
+ qqnxabstractnavigator.cpp qqnxabstractnavigator.h
+ qqnxabstractvirtualkeyboard.cpp qqnxabstractvirtualkeyboard.h
+ qqnxbuffer.cpp qqnxbuffer.h
+ qqnxcursor.cpp qqnxcursor.h
+ qqnxforeignwindow.cpp qqnxforeignwindow.h
+ qqnxglobal.cpp qqnxglobal.h
+ qqnxintegration.cpp qqnxintegration.h
+ qqnxkeytranslator.h
+ qqnxlgmon.h
+ qqnxnativeinterface.cpp qqnxnativeinterface.h
+ qqnxnavigatoreventhandler.cpp qqnxnavigatoreventhandler.h
+ qqnxrasterbackingstore.cpp qqnxrasterbackingstore.h
+ qqnxrasterwindow.cpp qqnxrasterwindow.h
+ qqnxscreen.cpp qqnxscreen.h
+ qqnxscreeneventfilter.h
+ qqnxscreeneventhandler.cpp qqnxscreeneventhandler.h
+ qqnxscreeneventthread.cpp qqnxscreeneventthread.h
+ qqnxservices.cpp qqnxservices.h
+ qqnxwindow.cpp qqnxwindow.h
+ PUBLIC_LIBRARIES
+ Qt::Core
+ Qt::CorePrivate
+ Qt::Gui
+ Qt::GuiPrivate
+ screen
+)
+
+#### Keys ignored in scope 1:.:.:qnx.pro:<TRUE>:
+# OTHER_FILES = "qnx.json"
+
+## Scopes:
+#####################################################################
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_egl
+ SOURCES
+ qqnxeglwindow.cpp qqnxeglwindow.h
+ qqnxglcontext.cpp qqnxglcontext.h
+ PUBLIC_LIBRARIES
+ EGL::EGL
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_qqnx_pps
+ SOURCES
+ qqnxbuttoneventnotifier.cpp qqnxbuttoneventnotifier.h
+ qqnxnavigatoreventnotifier.cpp qqnxnavigatoreventnotifier.h
+ qqnxnavigatorpps.cpp qqnxnavigatorpps.h
+ qqnxvirtualkeyboardpps.cpp qqnxvirtualkeyboardpps.h
+ PUBLIC_LIBRARIES
+ PPS::PPS
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_clipboard AND QT_FEATURE_qqnx_pps
+ SOURCES
+ qqnxclipboard.cpp qqnxclipboard.h
+ PUBLIC_LIBRARIES
+ clipboard
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_qqnx_imf AND QT_FEATURE_qqnx_pps
+ SOURCES
+ qqnxinputcontext_imf.cpp qqnxinputcontext_imf.h
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_qqnx_pps AND NOT QT_FEATURE_qqnx_imf
+ SOURCES
+ qqnxinputcontext_noimf.cpp qqnxinputcontext_noimf.h
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_lgmon
+ SOURCES
+ qqnxlgmon.cpp
+ DEFINES
+ QQNX_LGMON
+ PUBLIC_LIBRARIES
+ lgmon
+)
+
+#### Keys ignored in scope 8:.:.:qnx.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
+# PLUGIN_EXTENDS = "-"
diff --git a/src/plugins/platforms/qnx/CMakeLists.txt b/src/plugins/platforms/qnx/CMakeLists.txt
new file mode 100644
index 0000000000..b49c5be162
--- /dev/null
+++ b/src/plugins/platforms/qnx/CMakeLists.txt
@@ -0,0 +1,92 @@
+# Generated from qnx.pro.
+
+#####################################################################
+## QQnxIntegrationPlugin Plugin:
+#####################################################################
+
+qt_internal_add_plugin(QQnxIntegrationPlugin
+ OUTPUT_NAME qqnx
+ TYPE platforms
+ DEFAULT_IF ${QT_QPA_DEFAULT_PLATFORM} MATCHES qnx # special case
+ SOURCES
+ main.cpp main.h
+ qqnxabstractcover.h
+ qqnxabstractnavigator.cpp qqnxabstractnavigator.h
+ qqnxabstractvirtualkeyboard.cpp qqnxabstractvirtualkeyboard.h
+ qqnxbuffer.cpp qqnxbuffer.h
+ qqnxcursor.cpp qqnxcursor.h
+ qqnxforeignwindow.cpp qqnxforeignwindow.h
+ qqnxglobal.cpp qqnxglobal.h
+ qqnxintegration.cpp qqnxintegration.h
+ qqnxkeytranslator.h
+ qqnxlgmon.h
+ qqnxnativeinterface.cpp qqnxnativeinterface.h
+ qqnxnavigatoreventhandler.cpp qqnxnavigatoreventhandler.h
+ qqnxrasterbackingstore.cpp qqnxrasterbackingstore.h
+ qqnxrasterwindow.cpp qqnxrasterwindow.h
+ qqnxscreen.cpp qqnxscreen.h
+ qqnxscreeneventfilter.h
+ qqnxscreeneventhandler.cpp qqnxscreeneventhandler.h
+ qqnxscreeneventthread.cpp qqnxscreeneventthread.h
+ qqnxservices.cpp qqnxservices.h
+ qqnxwindow.cpp qqnxwindow.h
+ LIBRARIES
+ Qt::Core
+ Qt::CorePrivate
+ Qt::Gui
+ Qt::GuiPrivate
+ screen
+)
+
+#### Keys ignored in scope 1:.:.:qnx.pro:<TRUE>:
+# OTHER_FILES = "qnx.json"
+
+## Scopes:
+#####################################################################
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_egl
+ SOURCES
+ qqnxeglwindow.cpp qqnxeglwindow.h
+ qqnxglcontext.cpp qqnxglcontext.h
+ PUBLIC_LIBRARIES
+ EGL::EGL
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_qqnx_pps
+ SOURCES
+ qqnxbuttoneventnotifier.cpp qqnxbuttoneventnotifier.h
+ qqnxnavigatoreventnotifier.cpp qqnxnavigatoreventnotifier.h
+ qqnxnavigatorpps.cpp qqnxnavigatorpps.h
+ qqnxvirtualkeyboardpps.cpp qqnxvirtualkeyboardpps.h
+ PUBLIC_LIBRARIES
+ PPS::PPS
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_clipboard AND QT_FEATURE_qqnx_pps
+ SOURCES
+ qqnxclipboard.cpp qqnxclipboard.h
+ PUBLIC_LIBRARIES
+ clipboard
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_qqnx_imf AND QT_FEATURE_qqnx_pps
+ SOURCES
+ qqnxinputcontext_imf.cpp qqnxinputcontext_imf.h
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION QT_FEATURE_qqnx_pps AND NOT QT_FEATURE_qqnx_imf
+ SOURCES
+ qqnxinputcontext_noimf.cpp qqnxinputcontext_noimf.h
+)
+
+qt_internal_extend_target(QQnxIntegrationPlugin CONDITION lgmon
+ SOURCES
+ qqnxlgmon.cpp
+ DEFINES
+ QQNX_LGMON
+ PUBLIC_LIBRARIES
+ lgmon
+)
+
+#### Keys ignored in scope 8:.:.:qnx.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
+# PLUGIN_EXTENDS = "-"
diff --git a/src/plugins/platforms/qnx/qqnxwindow.cpp b/src/plugins/platforms/qnx/qqnxwindow.cpp
index 9d3b921c44..146db2909c 100644
--- a/src/plugins/platforms/qnx/qqnxwindow.cpp
+++ b/src/plugins/platforms/qnx/qqnxwindow.cpp
@@ -946,10 +946,12 @@ void QQnxWindow::applyWindowState()
void QQnxWindow::windowPosted()
{
- if (m_cover)
+ if (m_cover) {
m_cover->updateCover();
-
- qqnxLgmonFramePosted(m_cover); // for performance measurements
+ qqnxLgmonFramePosted(true); // for performance measurements
+ } else {
+ qqnxLgmonFramePosted(false); // for performance measurements
+ }
}
bool QQnxWindow::shouldMakeFullScreen() const