libinput: Fix developer build without xkbcommon

Before this fix, the build failed with:
error: unused variable 'REPEAT_DELAY' [-Werror,-Wunused-const-variable]
error: unused variable 'REPEAT_RATE' [-Werror,-Wunused-const-variable]

Change-Id: I44a76e2270c1f5d8af6bd018869db5e30e40ecbb
Reviewed-by: Liang Qi <liang.qi@qt.io>
(cherry picked from commit 42ea8c31fe459ac252144f89986891b241c3e9d0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 01b90c38e70243f1c83eebab08073a2c2cc9f7a0)
bb10
Robert Löhning 2025-01-29 22:56:44 +01:00
parent b2260b9d72
commit 746b2685c2
1 changed files with 2 additions and 0 deletions

View File

@ -17,8 +17,10 @@ QT_BEGIN_NAMESPACE
Q_DECLARE_LOGGING_CATEGORY(qLcLibInput)
#if QT_CONFIG(xkbcommon)
const int REPEAT_DELAY = 500;
const int REPEAT_RATE = 100;
#endif
QLibInputKeyboard::QLibInputKeyboard()
{