summaryrefslogtreecommitdiffstats
path: root/src/gvcore/imageviewcontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gvcore/imageviewcontroller.cpp')
-rw-r--r--src/gvcore/imageviewcontroller.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/gvcore/imageviewcontroller.cpp b/src/gvcore/imageviewcontroller.cpp
index b2e9c31..4a00ccb 100644
--- a/src/gvcore/imageviewcontroller.cpp
+++ b/src/gvcore/imageviewcontroller.cpp
@@ -418,7 +418,7 @@ void ImageViewController::updateFromSettings() {
*/
bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) {
if (!d->mFullScreen) return false;
- if (!event->type()==TQEvent::MouseMove) return false;
+ if (event->type()!=TQEvent::MouseMove) return false;
// Check we must filter this object. This is an application filter, so we
// have to check we are not dealing with another object.
@@ -434,16 +434,10 @@ bool ImageViewController::eventFilter(TQObject* object, TQEvent* event) {
d->updateFullScreenBarPosition();
- if (event->type()==TQEvent::MouseMove) {
- d->mCursorHidden=false;
- d->restartAutoHideTimer();
- }
+ d->mCursorHidden=false;
+ d->restartAutoHideTimer();
- if (d->mCursorHidden) {
- TQApplication::setOverrideCursor(blankCursor,true);
- } else {
- TQApplication::restoreOverrideCursor();
- }
+ TQApplication::restoreOverrideCursor();
return false;
}