New element panel : add a "show only this dir" Qaction.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4355 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-02-26 09:58:55 +00:00
parent a545791b71
commit 52b588ea50
6 changed files with 120 additions and 15 deletions

View File

@@ -69,6 +69,7 @@ class ElementCollectionItem : public QObject
QList<ElementCollectionItem *> elementsChild() const;
QList<ElementCollectionItem *> directoriesChild() const;
int indexOfChild(ElementCollectionItem *child) const;
void setBackgroundColor(Qt::GlobalColor color, bool show);
virtual bool canRemoveContent();
@@ -84,6 +85,8 @@ class ElementCollectionItem : public QObject
ElementCollectionItem *m_parent_item;
QList <ElementCollectionItem *> m_child_items;
QString m_name;
Qt::GlobalColor m_bg_color;
bool m_show_bg_color = false;
};
#endif // ELEMENTCOLLECTIONITEM_H