r15295 by jghali - #9225: When moving the mouse from a guide to the ruler, the "move guide" mouse cursor icon remains

scribus-commit scribus-commit at lists.scribus.net
Wed Jun 30 23:30:22 CEST 2010


Revision: 15295
Author: jghali
Date: 2010-06-30T21:26:28.082945Z
Commit message: #9225: When moving the mouse from a guide to the ruler, the "move guide" mouse cursor icon remains

Changeset: 
M  /branches/Version135/Scribus/scribus/vruler.cpp
M  /branches/Version135/Scribus/scribus/hruler.cpp

Diffs:
Index: scribus/vruler.cpp
===================================================================
--- scribus/vruler.cpp	(revision 15294)
+++ scribus/vruler.cpp	(revision 15295)
@@ -90,6 +90,12 @@
 	{
 		rulerGesture->mouseMoveEvent(m);
 	}
+	else
+	{
+		QCursor* cursor = qApp->overrideCursor();
+		if (cursor && (cursor->shape() != Qt::ArrowCursor))
+			qApp->changeOverrideCursor(QCursor(Qt::ArrowCursor));
+	}
 }
 
 void Vruler::paintEvent(QPaintEvent *e)
Index: scribus/hruler.cpp
===================================================================
--- scribus/hruler.cpp	(revision 15294)
+++ scribus/hruler.cpp	(revision 15295)
@@ -449,6 +449,12 @@
 		{
 			rulerGesture->mouseMoveEvent(m);
 		}
+		else
+		{
+			QCursor* cursor = qApp->overrideCursor();
+			if (cursor && (cursor->shape() != Qt::ArrowCursor))
+				qApp->changeOverrideCursor(QCursor(Qt::ArrowCursor));
+		}
 	}
 }
 




More information about the scribus-commit mailing list