plugins/hidecursor: show the cursor on tablet events

BUG: 489009
This commit is contained in:
Xaver Hugl 2024-06-27 12:38:00 +02:00
parent e597a37429
commit ad8c947134
2 changed files with 9 additions and 0 deletions

View file

@ -63,6 +63,14 @@ void HideCursorEffect::pointerEvent(MouseEvent *event)
}
}
void HideCursorEffect::tabletToolEvent(TabletEvent *event)
{
showCursor();
if (m_inactivityDuration > 0) {
m_inactivityTimer.start(m_inactivityDuration);
}
}
void HideCursorEffect::keyEvent(KeyEvent *event)
{
if (m_hideOnTyping && event->type() == QEvent::KeyPress) {

View file

@ -31,6 +31,7 @@ public:
void pointerEvent(MouseEvent *event) override;
void keyEvent(KeyEvent *event) override;
void tabletToolEvent(TabletEvent *event) override;
private:
void showCursor();