[qet] [1125] Elements Panel: items are now expanded/collapsed by a double click

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


Revision: 1125
Author:   xavier
Date:     2010-11-15 01:35:02 +0100 (Mon, 15 Nov 2010)
Log Message:
-----------
Elements Panel: items are now expanded/collapsed by a double click

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

Modified: branches/0.3/sources/elementspanel.cpp
===================================================================
--- branches/0.3/sources/elementspanel.cpp	2010-11-14 20:11:57 UTC (rev 1124)
+++ branches/0.3/sources/elementspanel.cpp	2010-11-15 00:35:02 UTC (rev 1125)
@@ -60,7 +60,7 @@
 	// selection unique
 	setSelectionMode(QAbstractItemView::SingleSelection);
 	setColumnCount(1);
-	setExpandsOnDoubleClick(false);
+	setExpandsOnDoubleClick(true);
 	header() -> hide();
 	
 	// drag'n drop autorise

Modified: branches/0.3/sources/elementspanelwidget.cpp
===================================================================
--- branches/0.3/sources/elementspanelwidget.cpp	2010-11-14 20:11:57 UTC (rev 1124)
+++ branches/0.3/sources/elementspanelwidget.cpp	2010-11-15 00:35:02 UTC (rev 1125)
@@ -399,10 +399,9 @@
 	if (item -> isElement()) {
 		// il s'agit d'un element
 		launchElementEditor(item -> location());
-	} else if (item -> isCategory()) {
-		// il s'agit d'une categorie
-		launchCategoryEditor(item -> location());
 	}
+	// we could edit it categories, but instead people prefer the double-clic to
+	// expand/collapse them
 }
 
 /**


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