From 150917a4ade87c56ffbf76a399d92306031e2254 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Mon, 25 May 2020 15:54:26 +0300 Subject: QNX: fix build error without PPS feature Use matching ifdef's as is done for the declaration. src/plugins/platforms/qnx/qqnxintegration.cpp:430:24: error: no declaration matches 'QPlatformInputContext* QQnxIntegration::inputContext() const' QPlatformInputContext *QQnxIntegration::inputContext() const ^~~~~~~~~~~~~~~ Change-Id: I7afddba514833279fe560c1807da0cb060aead29 Reviewed-by: James McDonnell --- src/plugins/platforms/qnx/qqnxintegration.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/platforms/qnx/qqnxintegration.cpp b/src/plugins/platforms/qnx/qqnxintegration.cpp index 84baa6ec44..a81015d38c 100644 --- a/src/plugins/platforms/qnx/qqnxintegration.cpp +++ b/src/plugins/platforms/qnx/qqnxintegration.cpp @@ -427,6 +427,7 @@ QPlatformOpenGLContext *QQnxIntegration::createPlatformOpenGLContext(QOpenGLCont } #endif +#if QT_CONFIG(qqnx_pps) QPlatformInputContext *QQnxIntegration::inputContext() const { qIntegrationDebug(); @@ -434,6 +435,7 @@ QPlatformInputContext *QQnxIntegration::inputContext() const return m_qpaInputContext; return m_inputContext; } +#endif void QQnxIntegration::moveToScreen(QWindow *window, int screen) { -- cgit v1.2.3