mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Fix logic in setCursorVisible + make it visible if controls are
This commit is contained in:
+4
-4
@@ -46,13 +46,13 @@ void OutputGLWindow::setCursorVisible(bool visible)
|
||||
|
||||
if (_pointerIsVisible)
|
||||
{
|
||||
this->setCursor(Qt::BlankCursor);
|
||||
_pointerIsVisible = false;
|
||||
this->setCursor(Qt::ArrowCursor);
|
||||
_pointerIsVisible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this->setCursor(Qt::ArrowCursor);
|
||||
_pointerIsVisible = true;
|
||||
this->setCursor(Qt::BlankCursor);
|
||||
_pointerIsVisible = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user