Fix build error when tablet support is disabled

When Qt is configured with -no-feature-tabletevent, QtWayland fails to
build because code referencing QWaylandInputDevice::mTabletSeat is still
compiled, even though mTabletSeat is only available when tablet event
support is enabled.

Pick-to: 6.9 6.8
Change-Id: Iad82ea47cfc64040772429f469d9104b75490891
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>
This commit is contained in:
YAMAMOTO Atsushi 2025-04-24 17:09:25 +09:00 committed by Liang Qi
parent 4468b53645
commit d8f07f43e5

View File

@ -641,8 +641,10 @@ void QWaylandInputDevice::setCursor(const QCursor *cursor, const QSharedPointer<
if (mPointer)
mPointer->updateCursor();
#if QT_CONFIG(tabletevent)
if (mTabletSeat)
mTabletSeat->updateCursor();
#endif
}
#endif