r15485 by jghali - fix incorrect cursor being potentially displayed after passing mouse on horizontal ruler

scribus-commit scribus-commit at lists.scribus.net
Mon Sep 27 08:28:34 CEST 2010


Author: jghali
Date: Mon Sep 27 06:28:34 2010
New Revision: 15485

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15485
Log:
fix incorrect cursor being potentially displayed after passing mouse on horizontal ruler

Modified:
    trunk/Scribus/scribus/ui/hruler.cpp

Modified: trunk/Scribus/scribus/ui/hruler.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15485&path=/trunk/Scribus/scribus/ui/hruler.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/hruler.cpp (original)
+++ trunk/Scribus/scribus/ui/hruler.cpp Mon Sep 27 06:28:34 2010
@@ -339,6 +339,11 @@
 	qApp->changeOverrideCursor(QCursor(loadIcon("tab.png"), 3));
 }
 
+void Hruler::leaveEvent(QEvent *m)
+{
+	emit MarkerMoved(0, -1);
+	currView->m_canvasMode->setModeCursor();
+}
 
 void Hruler::mouseMoveEvent(QMouseEvent *m)
 {
@@ -495,12 +500,6 @@
 		}
 	}
 }
-
-void Hruler::leaveEvent(QEvent *m)
-{
-	emit MarkerMoved(0, -1);
-}
-
 
 void Hruler::paintEvent(QPaintEvent *e)
 {




More information about the scribus-commit mailing list