[qet] [3494] Enable mouse hoverMoveEvent conductor

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3494
Author:   scorpio810
Date:     2014-11-16 21:51:46 +0100 (Sun, 16 Nov 2014)
Log Message:
-----------
Enable mouse hoverMoveEvent conductor
Minor change in conductorpropertieswidget.ui

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/conductor.cpp
    trunk/sources/ui/conductorpropertieswidget.ui

Modified: trunk/sources/qetgraphicsitem/conductor.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/conductor.cpp	2014-11-16 20:32:55 UTC (rev 3493)
+++ trunk/sources/qetgraphicsitem/conductor.cpp	2014-11-16 20:51:46 UTC (rev 3494)
@@ -708,18 +708,18 @@
 }
 
 /**
-	Gere les mouvements de souris au dessus du conducteur
-	@param e Le QGraphicsSceneHoverEvent decrivant l'evenement
-*/
+ * @brief Conductor::hoverMoveEvent conductor
+ * @param e QGraphicsSceneHoverEvent describing the event
+ */
 void Conductor::hoverMoveEvent(QGraphicsSceneHoverEvent *e) {
-	/*
+
 	if (isSelected()) {
-		QPointF hover_point = mapFromScene(e -> pos());
+		QPointF hover_point = mapFromScene(e -> pos()) + scenePos();
 		ConductorSegment *segment = segments;
 		bool cursor_set = false;
 		while (segment -> hasNextSegment()) {
 			if (hasClickedOn(hover_point, segment -> secondPoint())) {
-				setCursor(Qt::CrossCursor);
+				setCursor(Qt::ForbiddenCursor);
 				cursor_set = true;
 			} else if (hasClickedOn(hover_point, segment -> middle())) {
 				setCursor(segment -> isVertical() ? Qt::SplitHCursor : Qt::SplitVCursor);
@@ -729,7 +729,7 @@
 		}
 		if (!cursor_set) setCursor(Qt::ArrowCursor);
 	}
-	*/
+
 	QGraphicsPathItem::hoverMoveEvent(e);
 }
 

Modified: trunk/sources/ui/conductorpropertieswidget.ui
===================================================================
--- trunk/sources/ui/conductorpropertieswidget.ui	2014-11-16 20:32:55 UTC (rev 3493)
+++ trunk/sources/ui/conductorpropertieswidget.ui	2014-11-16 20:51:46 UTC (rev 3494)
@@ -107,7 +107,7 @@
               <string>activer l'option un texte par potentiel</string>
              </property>
              <property name="text">
-              <string>Afficher un texte de potentiel par folio. (expérimental)</string>
+              <string>Afficher un texte de potentiel par folio. </string>
              </property>
             </widget>
            </item>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/