r15484 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:17 CEST 2010


Author: jghali
Date: Mon Sep 27 06:28:16 2010
New Revision: 15484

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

Modified:
    branches/Version135/Scribus/scribus/hruler.cpp

Modified: branches/Version135/Scribus/scribus/hruler.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15484&path=/branches/Version135/Scribus/scribus/hruler.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/hruler.cpp (original)
+++ branches/Version135/Scribus/scribus/hruler.cpp Mon Sep 27 06:28:16 2010
@@ -328,6 +328,12 @@
 	qApp->changeOverrideCursor(QCursor(loadIcon("tab.png"), 3));
 }
 
+void Hruler::leaveEvent(QEvent *e)
+{
+	emit MarkerMoved(0, -1);
+	currView->m_canvasMode->setModeCursor();
+}
+
 void Hruler::mouseMoveEvent(QMouseEvent *m)
 {
 	if (currDoc->isLoading())
@@ -482,11 +488,6 @@
 			}
 		}
 	}
-}
-
-void Hruler::leaveEvent(QEvent *m)
-{
-	emit MarkerMoved(0, -1);
 }
 
 void Hruler::paintEvent(QPaintEvent *e)




More information about the scribus-commit mailing list