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:
parent
4468b53645
commit
d8f07f43e5
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user