[qet] [1501] Generic panel: elements were not correctly marked as used in some cases.

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


Revision: 1501
Author:   xavier
Date:     2012-02-12 18:25:08 +0100 (Sun, 12 Feb 2012)
Log Message:
-----------
Generic panel: elements were not correctly marked as used in some cases.

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

Modified: branches/0.3/sources/genericpanel.cpp
===================================================================
--- branches/0.3/sources/genericpanel.cpp	2012-02-12 17:19:01 UTC (rev 1500)
+++ branches/0.3/sources/genericpanel.cpp	2012-02-12 17:25:08 UTC (rev 1501)
@@ -802,7 +802,9 @@
 		element_qtwi -> setIcon(0, QIcon(cache -> pixmap()));
 	}
 	
+	// note the following lines are technically marking the element as used
 	element_qtwi -> setToolTip(0, element_location.toString());
+	element_qtwi -> setBackground(0, QBrush());
 	// actions speciales pour les elements appartenant a un projet
 	if (QETProject *element_project = element_location.project()) {
 		// affiche en rouge les elements inutilises dans un projet


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