Fix warning for -no-feature-evdev
Change-Id: I95af276a6d21e67a980cce1d8c6e41900ece7f31 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
parent
5d61c0882c
commit
36553f8efe
@ -452,9 +452,8 @@ void QEglFSIntegration::createInputHandlers()
|
||||
}
|
||||
#endif
|
||||
|
||||
bool useTslib = false;
|
||||
#if QT_CONFIG(tslib)
|
||||
useTslib = qEnvironmentVariableIntValue("QT_QPA_EGLFS_TSLIB");
|
||||
bool useTslib = qEnvironmentVariableIntValue("QT_QPA_EGLFS_TSLIB");
|
||||
if (useTslib)
|
||||
new QTsLibMouseHandler(QLatin1String("TsLib"), QString() /* spec */);
|
||||
#endif
|
||||
@ -462,7 +461,9 @@ void QEglFSIntegration::createInputHandlers()
|
||||
#if QT_CONFIG(evdev)
|
||||
m_kbdMgr = new QEvdevKeyboardManager(QLatin1String("EvdevKeyboard"), QString() /* spec */, this);
|
||||
new QEvdevMouseManager(QLatin1String("EvdevMouse"), QString() /* spec */, this);
|
||||
#if QT_CONFIG(tslib)
|
||||
if (!useTslib)
|
||||
#endif
|
||||
new QEvdevTouchManager(QLatin1String("EvdevTouch"), QString() /* spec */, this);
|
||||
#endif
|
||||
}
|
||||
|
@ -156,9 +156,8 @@ void QLinuxFbIntegration::createInputHandlers()
|
||||
}
|
||||
#endif
|
||||
|
||||
bool useTslib = false;
|
||||
#if QT_CONFIG(tslib)
|
||||
useTslib = qEnvironmentVariableIntValue("QT_QPA_FB_TSLIB");
|
||||
bool useTslib = qEnvironmentVariableIntValue("QT_QPA_FB_TSLIB");
|
||||
if (useTslib)
|
||||
new QTsLibMouseHandler(QLatin1String("TsLib"), QString());
|
||||
#endif
|
||||
@ -166,7 +165,9 @@ void QLinuxFbIntegration::createInputHandlers()
|
||||
#if QT_CONFIG(evdev) && !defined(Q_OS_ANDROID)
|
||||
new QEvdevKeyboardManager(QLatin1String("EvdevKeyboard"), QString(), this);
|
||||
new QEvdevMouseManager(QLatin1String("EvdevMouse"), QString(), this);
|
||||
#if QT_CONFIG(tslib)
|
||||
if (!useTslib)
|
||||
#endif
|
||||
new QEvdevTouchManager(QLatin1String("EvdevTouch"), QString() /* spec */, this);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user