evdevtablet: don't use qpa compatibility function
This patch does not attempt to add the necessary functionality to support other tablet buttons, it simply replaces deprecated version of QWindowSystemInterface::handleTabletEvent(), by keeping the previous logic. Task-number: QTBUG-62886 Change-Id: I23597077774d482492136fda2e998700f8b27e9c Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
c06fb51b8a
commit
de7ffee747
@ -149,9 +149,11 @@ void QEvdevTabletData::report()
|
||||
qreal pressure = pressureRange ? (state.p - minValues.p) / qreal(pressureRange) : qreal(1);
|
||||
|
||||
if (state.down || state.lastReportDown) {
|
||||
QWindowSystemInterface::handleTabletEvent(0, state.down, QPointF(), globalPos,
|
||||
QWindowSystemInterface::handleTabletEvent(0, QPointF(), globalPos,
|
||||
QTabletEvent::Stylus, pointer,
|
||||
pressure, 0, 0, 0, 0, 0, q->deviceId(), qGuiApp->keyboardModifiers());
|
||||
state.down ? Qt::LeftButton : Qt::NoButton,
|
||||
pressure, 0, 0, 0, 0, 0, q->deviceId(),
|
||||
qGuiApp->keyboardModifiers());
|
||||
}
|
||||
|
||||
if (state.lastReportTool && !state.tool)
|
||||
|
Loading…
Reference in New Issue
Block a user