summaryrefslogtreecommitdiffstats
path: root/src/gui/configure.cmake
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-02-14 11:36:32 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2021-09-18 15:39:07 +0000
commit53d1e26ff553b9eda5041929101c0ed054fc775b (patch)
tree14cb9e207bb6b04ab95af354f00fc8dfb290eed9 /src/gui/configure.cmake
parente7db28fa9ddb6cf165cf239836f3ee50913cd3d3 (diff)
High resolution wheel-event support from libinput
Is necessary because the support was added using a new event and a new getter. [ChangeLog][QtGui][libinput] Can now use the hires scrolling API from libinput 1.19, adding this feature to QPAs using libinput directly Task-number: QTBUG-96227 Change-Id: Ie30281de2f6391389e9e6049bc4117d3a8f63ad1 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/gui/configure.cmake')
-rw-r--r--src/gui/configure.cmake22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
index ea6752806e..a7fb77d48a 100644
--- a/src/gui/configure.cmake
+++ b/src/gui/configure.cmake
@@ -512,6 +512,23 @@ xcb_xkb_get_kbd_by_name_replies_key_names_value_list_sizeof(nullptr, 0, 0, 0, 0,
}
")
+# libinput_hires_wheel_support
+qt_config_compile_test(libinput_hires_wheel_support
+ LABEL "libinput hires wheel support"
+ LIBRARIES
+ Libinput::Libinput
+ CODE
+"#include <libinput.h>
+int main(void)
+{
+ /* BEGIN TEST: */
+libinput_event_type type = LIBINPUT_EVENT_POINTER_SCROLL_WHEEL;
+libinput_event_pointer_get_scroll_value_v120(nullptr, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL);
+ /* END TEST: */
+ return 0;
+}
+")
+
# special case begin
# directwrite (assumes DirectWrite2)
qt_config_compile_test(directwrite
@@ -678,6 +695,10 @@ qt_feature("libinput-axis-api" PRIVATE
LABEL "axis API in libinput"
CONDITION QT_FEATURE_libinput AND ON
)
+qt_feature("libinput-hires-wheel-support" PRIVATE
+ LABEL "HiRes wheel support in libinput"
+ CONDITION QT_FEATURE_libinput AND TEST_libinput_hires_wheel_support
+)
qt_feature("lgmon"
LABEL "lgmon"
CONDITION libs.lgmon OR FIXME
@@ -1223,6 +1244,7 @@ qt_configure_end_summary_section() # end of "Qt Gui" section
qt_configure_add_summary_section(NAME "Features used by QPA backends")
qt_configure_add_summary_entry(ARGS "evdev")
qt_configure_add_summary_entry(ARGS "libinput")
+qt_configure_add_summary_entry(ARGS "libinput_hires_wheel_support")
qt_configure_add_summary_entry(ARGS "integrityhid")
qt_configure_add_summary_entry(ARGS "mtdev")
qt_configure_add_summary_entry(ARGS "tslib")