mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
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:
@@ -802,7 +802,9 @@ QTreeWidgetItem *GenericPanel::updateElementItem(QTreeWidgetItem *element_qtwi,
|
|||||||
element_qtwi -> setIcon(0, QIcon(cache -> pixmap()));
|
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 -> setToolTip(0, element_location.toString());
|
||||||
|
element_qtwi -> setBackground(0, QBrush());
|
||||||
// actions speciales pour les elements appartenant a un projet
|
// actions speciales pour les elements appartenant a un projet
|
||||||
if (QETProject *element_project = element_location.project()) {
|
if (QETProject *element_project = element_location.project()) {
|
||||||
// affiche en rouge les elements inutilises dans un projet
|
// affiche en rouge les elements inutilises dans un projet
|
||||||
|
|||||||
Reference in New Issue
Block a user