]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/glwidget.cpp
Fixed insert cart dialog, mouse hiding.
[virtualjaguar] / src / gui / glwidget.cpp
index 2f959186914834bd0bf5cbb54ac03cfb97943263..8d69f63ff6a356e8775e929c7a5cfb58f4c60d18 100644 (file)
@@ -144,20 +144,18 @@ void GLWidget::CreateTextures(void)
 }
 
 
-//void GLWidget::HideMouseIfTimedOut(void)
 void GLWidget::HandleMouseHiding(void)
 {
        // Mouse watchdog timer handling. Basically, if the timeout value is
-       // greater than zero, decrement it. Otherwise, check for zero, if so,
-       // then hide the mouse and set the hideMouseTimeout value to -1 to
-       // signal that the mouse has been hidden.
+       // greater than zero, decrement it. Otherwise, check for zero, if so, then
+       // hide the mouse and set the hideMouseTimeout value to -1 to signal that
+       // the mouse has been hidden.
        if (hideMouseTimeout > 0)
                hideMouseTimeout--;
        else if (hideMouseTimeout == 0)
        {
                hideMouseTimeout--;
-               qApp->setOverrideCursor(Qt::BlankCursor);
-//printf("timer: hideMouseTimeout = %i, mouse hidden\n", hideMouseTimeout);
+               setCursor(Qt::BlankCursor);
        }
 }
 
@@ -168,7 +166,7 @@ void GLWidget::CheckAndRestoreMouseCursor(void)
 {
        // Has the mouse been hidden? (-1 means mouse was hidden)
        if (hideMouseTimeout == -1)
-               qApp->restoreOverrideCursor();
+               setCursor(Qt::ArrowCursor);
 
        hideMouseTimeout = 60;
 }