diff options
author | Rolf Eike Beer <eb@emlix.com> | 2019-09-30 16:36:30 +0200 |
---|---|---|
committer | Rolf Eike Beer <eb@emlix.com> | 2019-10-01 10:36:24 +0200 |
commit | 72d62144ab2bf67266aa0474515b54999b459d32 (patch) | |
tree | 823122a4a4f5a1945254c9e416c37891cd51c159 /src/platformsupport/input/tslib/qtslib.cpp | |
parent | beff7805064ec0bb32a16f9a610406134ea5d22d (diff) |
tslib plugin: remove debug print on old tslib versionsv5.14.0-beta1
This introduces a dependency on ts_get_eventpath(), which is only
available in tslib 1.15 and newer. This raises the required version to
an unneeded level, so just drop the debug message if the API is not
available.
Change-Id: I4a1cd7abec8d139e70555506d9d21edacf0f4d71
Fixes: QTBUG-78867
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Fabian Vogt <fabian@ritter-vogt.de>
Diffstat (limited to 'src/platformsupport/input/tslib/qtslib.cpp')
-rw-r--r-- | src/platformsupport/input/tslib/qtslib.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platformsupport/input/tslib/qtslib.cpp b/src/platformsupport/input/tslib/qtslib.cpp index df57147af6..e105f5ea98 100644 --- a/src/platformsupport/input/tslib/qtslib.cpp +++ b/src/platformsupport/input/tslib/qtslib.cpp @@ -68,7 +68,9 @@ QTsLibMouseHandler::QTsLibMouseHandler(const QString &key, return; } +#ifdef TSLIB_VERSION_EVENTPATH /* also introduced in 1.15 */ qCDebug(qLcTsLib) << "tslib device is" << ts_get_eventpath(m_dev); +#endif m_notify = new QSocketNotifier(ts_fd(m_dev), QSocketNotifier::Read, this); connect(m_notify, &QSocketNotifier::activated, this, &QTsLibMouseHandler::readMouseData); } |