Skip to content

Commit

Permalink
QNX: fix build error without PPS feature
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
sapiippo committed Jun 4, 2020
1 parent 6d6bfcb commit 150917a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/platforms/qnx/qqnxintegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,15 @@ QPlatformOpenGLContext *QQnxIntegration::createPlatformOpenGLContext(QOpenGLCont
}
#endif

#if QT_CONFIG(qqnx_pps)
QPlatformInputContext *QQnxIntegration::inputContext() const
{
qIntegrationDebug();
if (m_qpaInputContext)
return m_qpaInputContext;
return m_inputContext;
}
#endif

void QQnxIntegration::moveToScreen(QWindow *window, int screen)
{
Expand Down

0 comments on commit 150917a

Please sign in to comment.