X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fglwidget.cpp;h=8d69f63ff6a356e8775e929c7a5cfb58f4c60d18;hb=62587015fb12ec54b1702bfa17077e4b8af44b19;hp=2f959186914834bd0bf5cbb54ac03cfb97943263;hpb=7228359373eb7602c26f7b098d6b2271ff5727a1;p=virtualjaguar diff --git a/src/gui/glwidget.cpp b/src/gui/glwidget.cpp index 2f95918..8d69f63 100644 --- a/src/gui/glwidget.cpp +++ b/src/gui/glwidget.cpp @@ -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; }