[qet] [1124] Elements panel: during a drag and drop operation, the hovered item is now expanded after a short time not moving the mouse.

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


Revision: 1124
Author:   xavier
Date:     2010-11-14 21:11:57 +0100 (Sun, 14 Nov 2010)
Log Message:
-----------
Elements panel: during a drag and drop operation, the hovered item is now expanded after a short time not moving the mouse.

Modified Paths:
--------------
    branches/0.3/sources/elementspanel.cpp

Modified: branches/0.3/sources/elementspanel.cpp
===================================================================
--- branches/0.3/sources/elementspanel.cpp	2010-11-06 11:06:29 UTC (rev 1123)
+++ branches/0.3/sources/elementspanel.cpp	2010-11-14 20:11:57 UTC (rev 1124)
@@ -67,6 +67,7 @@
 	setDragEnabled(true);
 	setAcceptDrops(true);
 	setDropIndicatorShown(true);
+	setAutoExpandDelay(1000);
 	
 	// taille des elements
 	setIconSize(QSize(50, 50));
@@ -337,6 +338,8 @@
 		scroll_bar -> setValue(scroll_bar -> value() + 1);
 	}
 	
+	QTreeWidget::dragMoveEvent(e);
+	
 	// recupere la categorie cible pour le deplacement / la copie
 	ElementsCategory *target_category = categoryForPos(e -> pos());
 	if (!target_category) {


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