From e3a8c19de733617ea40b6520c3b65e0faf52f578 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Tue, 25 Jan 2022 19:53:07 +0100 Subject: Fix build with -no-feature-tabletevent Fixes: QTBUG-99965 Change-Id: Ib7fcf92973b4e559713ae27ad0c7f843f9122daf Reviewed-by: Eskil Abrahamsen Blomfeldt Reviewed-by: Alexandru Croitor (cherry picked from commit ba82ba66eb8dc3580e67683783a410a254984def) --- src/client/qwaylandinputdevice_p.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/qwaylandinputdevice_p.h') diff --git a/src/client/qwaylandinputdevice_p.h b/src/client/qwaylandinputdevice_p.h index aebff248..042eb285 100644 --- a/src/client/qwaylandinputdevice_p.h +++ b/src/client/qwaylandinputdevice_p.h @@ -89,7 +89,9 @@ class QWaylandDisplay; #if QT_CONFIG(wayland_client_primary_selection) class QWaylandPrimarySelectionDeviceV1; #endif +#if QT_CONFIG(tabletevent) class QWaylandTabletSeatV2; +#endif class QWaylandTextInput; #if QT_CONFIG(cursor) class QWaylandCursorTheme; @@ -128,8 +130,10 @@ public: QWaylandPrimarySelectionDeviceV1 *primarySelectionDevice() const; #endif +#if QT_CONFIG(tabletevent) void setTabletSeat(QWaylandTabletSeatV2 *tabletSeat); QWaylandTabletSeatV2* tabletSeat() const; +#endif void setTextInput(QWaylandTextInput *textInput); QWaylandTextInput *textInput() const; @@ -187,7 +191,9 @@ private: Touch *mTouch = nullptr; QScopedPointer mTextInput; +#if QT_CONFIG(tabletevent) QScopedPointer mTabletSeat; +#endif uint32_t mTime = 0; uint32_t mSerial = 0; -- cgit v1.2.1