summaryrefslogtreecommitdiffstats
path: root/beetview.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-02-17 22:20:28 +0100
committerArno <arno@disconnect.de>2018-02-17 23:04:05 +0100
commit3d3c693f05f79d31250c55579236f8b7b9c62a14 (patch)
tree7db28c3989507e5ee970a6b808437b71091767de /beetview.h
parent70545ab47b7ae61fb4358a6fc6f33e9c423ceea5 (diff)
downloadBeetPlayer-3d3c693f05f79d31250c55579236f8b7b9c62a14.tar.gz
BeetPlayer-3d3c693f05f79d31250c55579236f8b7b9c62a14.tar.bz2
BeetPlayer-3d3c693f05f79d31250c55579236f8b7b9c62a14.zip
Re-Add Expand and Collapse Actions..
but only if the first child of the root item has children
Diffstat (limited to 'beetview.h')
-rw-r--r--beetview.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/beetview.h b/beetview.h
index 763dc8e..f4ae39f 100644
--- a/beetview.h
+++ b/beetview.h
@@ -6,10 +6,17 @@
class BeetView : public QTreeView {
Q_OBJECT
public:
+ enum ExpandOrCollapseMode { Expand, Collapse };
explicit BeetView(QWidget *parent = 0);
+ public slots:
+ void expandOrCollapse(int mode);
+
protected:
virtual void contextMenuEvent(QContextMenuEvent *e);
+
+ private:
+ void expandOrCollapseRecursive(const QModelIndex &idx, int mode);
};
#endif // BEETVIEW_H