mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
element collection widget : highlight unused element in a project.
the feature "clean project" does not clean unused elements yet git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4561 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -21,14 +21,13 @@
|
||||
#include <QStandardItemModel>
|
||||
#include "elementslocation.h"
|
||||
|
||||
template<>
|
||||
class QList<QETProject>;
|
||||
class XmlProjectElementCollectionItem;
|
||||
template<>
|
||||
class QHash<QETProject, XmlProjectElementCollectionItem>;
|
||||
class ElementCollectionItem;
|
||||
template<>
|
||||
class QList<ElementCollectionItem>;
|
||||
template<> class QList<QETProject>;
|
||||
template<> class QHash<QETProject, XmlProjectElementCollectionItem>;
|
||||
template<> class QList<ElementCollectionItem>;
|
||||
|
||||
|
||||
|
||||
class ElementsCollectionModel : public QStandardItemModel
|
||||
{
|
||||
@@ -50,6 +49,8 @@ class ElementsCollectionModel : public QStandardItemModel
|
||||
void addProject(QETProject *project, bool set_data = true);
|
||||
void removeProject(QETProject *project);
|
||||
QList<QETProject *> project() const;
|
||||
void highlightUnusedElement();
|
||||
|
||||
|
||||
QList <ElementCollectionItem *> items() const;
|
||||
void hideElement();
|
||||
|
||||
Reference in New Issue
Block a user