Compare commits
1 Commits
ac0f5bc325
...
5bc7d7cf06
| Author | SHA1 | Date | |
|---|---|---|---|
| 5bc7d7cf06 |
@@ -38,6 +38,7 @@ VirtualKeyboard::VirtualKeyboard(QWidget * parent): QWidget(parent) {
|
|||||||
layout->applyHints(imh);
|
layout->applyHints(imh);
|
||||||
watched->installEventFilter(this);
|
watched->installEventFilter(this);
|
||||||
});
|
});
|
||||||
|
hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -134,11 +135,12 @@ void VirtualKeyboard::setKeyboardVisible(bool yes) {
|
|||||||
if (yes) {
|
if (yes) {
|
||||||
stopIndexedTimer(0);
|
stopIndexedTimer(0);
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
} else startIndexedTimer(0, 10_Hz, [this]{
|
} else
|
||||||
if (QApplication::mouseButtons() != 0) return;
|
startIndexedTimer(0, 10_Hz, [this] {
|
||||||
stopIndexedTimer(0);
|
if (QApplication::mouseButtons() != 0) return;
|
||||||
setVisible(false);
|
stopIndexedTimer(0);
|
||||||
});
|
setVisible(false);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user