summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2024-03-06 12:37:16 +0300
committerMichele Calgaro <[email protected]>2024-03-08 10:37:28 +0900
commitb24092d4d2cdfef0145f580a6d66be9b0e06db4c (patch)
tree26f73ce86868bcbaf10f80cfc1637dc6179706b8
parentf9cd02afd1dd2fda167df0dbb3a7347b999e4517 (diff)
downloadgwenview-b24092d4d2cdfef0145f580a6d66be9b0e06db4c.tar.gz
gwenview-b24092d4d2cdfef0145f580a6d66be9b0e06db4c.zip
fix an incorrect condition in ImageViewController::eventFilter()
Signed-off-by: Alexander Golubev <[email protected]> (cherry picked from commit a8bf4dbf8aa3c20f60454a296278f8d00c83617a)
-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;
}