plugins/hidecursor: show the cursor on tablet events
BUG: 489009
This commit is contained in:
parent
e597a37429
commit
ad8c947134
2 changed files with 9 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -31,6 +31,7 @@ public:
|
|||
|
||||
void pointerEvent(MouseEvent *event) override;
|
||||
void keyEvent(KeyEvent *event) override;
|
||||
void tabletToolEvent(TabletEvent *event) override;
|
||||
|
||||
private:
|
||||
void showCursor();
|
||||
|
|
Loading…
Reference in a new issue