From 518987a9a04cc5d2a5b2caded24d4ca27c0c877e Mon Sep 17 00:00:00 2001 From: xavier Date: Sun, 12 Feb 2012 17:25:08 +0000 Subject: [PATCH] Generic panel: elements were not correctly marked as used in some cases. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1501 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/genericpanel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/genericpanel.cpp b/sources/genericpanel.cpp index 47d71a089..0e6fdef32 100644 --- a/sources/genericpanel.cpp +++ b/sources/genericpanel.cpp @@ -802,7 +802,9 @@ QTreeWidgetItem *GenericPanel::updateElementItem(QTreeWidgetItem *element_qtwi, 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