r15296 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:42 CEST 2010


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

Changeset: 
M  /trunk/Scribus/scribus/ui/vruler.cpp
M  /trunk/Scribus/scribus/ui/hruler.cpp

Diffs:
Index: scribus/ui/vruler.cpp
===================================================================
--- scribus/ui/vruler.cpp	(revision 15295)
+++ scribus/ui/vruler.cpp	(revision 15296)
@@ -92,6 +92,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/ui/hruler.cpp
===================================================================
--- scribus/ui/hruler.cpp	(revision 15295)
+++ scribus/ui/hruler.cpp	(revision 15296)
@@ -451,6 +451,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