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