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
This commit is contained in:
xavier
2012-02-12 17:25:08 +00:00
parent 072f63dfb6
commit 518987a9a0

View File

@@ -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