tablet: Provide the position when proximity-in hits
This commit is contained in:
parent
4a69ca4146
commit
4dca6408c2
1 changed files with 3 additions and 0 deletions
|
@ -1902,7 +1902,10 @@ public:
|
||||||
m_cursorByTool[tool]->setPos(event->globalPos());
|
m_cursorByTool[tool]->setPos(event->globalPos());
|
||||||
break;
|
break;
|
||||||
} case QEvent::TabletEnterProximity: {
|
} case QEvent::TabletEnterProximity: {
|
||||||
|
const QPoint pos = event->globalPos();
|
||||||
|
m_cursorByTool[tool]->setPos(pos);
|
||||||
tool->sendProximityIn(tablet);
|
tool->sendProximityIn(tablet);
|
||||||
|
tool->sendMotion(toplevel->mapToLocal(event->globalPosF()));
|
||||||
break;
|
break;
|
||||||
} case QEvent::TabletLeaveProximity:
|
} case QEvent::TabletLeaveProximity:
|
||||||
tool->sendProximityOut();
|
tool->sendProximityOut();
|
||||||
|
|
Loading…
Reference in a new issue