mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Correctly Hide/Show cursor
This commit is contained in:
parent
43dc35d549
commit
dc4c9cd545
1 changed files with 8 additions and 2 deletions
|
@ -2311,9 +2311,15 @@ void Application::updateCursor(float deltaTime) {
|
|||
|
||||
void Application::setCursorVisible(bool visible) {
|
||||
if (visible) {
|
||||
_glWidget->unsetCursor();
|
||||
if (overrideCursor() != NULL) {
|
||||
restoreOverrideCursor();
|
||||
}
|
||||
} else {
|
||||
_glWidget->setCursor(Qt::BlankCursor);
|
||||
if (overrideCursor() != NULL) {
|
||||
changeOverrideCursor(Qt::BlankCursor);
|
||||
} else {
|
||||
setOverrideCursor(Qt::BlankCursor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue