summaryrefslogtreecommitdiffstats
path: root/src/sessiontreemodel.h
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-20 16:43:34 +0100
committerSimon Rettberg2016-01-20 16:43:34 +0100
commit414c109d650a1014e7b84dfb66a00df420d67c97 (patch)
treeede0c5404aa408cd2bbb626312ed46383c7b13b6 /src/sessiontreemodel.h
parentRe-introduce tree structure: Allow server-defined sections (diff)
downloadvmchooser2-414c109d650a1014e7b84dfb66a00df420d67c97.tar.gz
vmchooser2-414c109d650a1014e7b84dfb66a00df420d67c97.tar.xz
vmchooser2-414c109d650a1014e7b84dfb66a00df420d67c97.zip
Remodel section handling: Use constants
Diffstat (limited to 'src/sessiontreemodel.h')
-rw-r--r--src/sessiontreemodel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sessiontreemodel.h b/src/sessiontreemodel.h
index 481c5f7..6a55eed 100644
--- a/src/sessiontreemodel.h
+++ b/src/sessiontreemodel.h
@@ -5,8 +5,9 @@
#include <QModelIndex>
#include <QVariant>
+#include "session.h"
+
class SessionTreeItem;
-class Session;
class SessionTreeModel : public QAbstractItemModel {
Q_OBJECT
@@ -29,6 +30,7 @@ class SessionTreeModel : public QAbstractItemModel {
void addLabelItem(const QString& label);
void removeItem(const QString& name);
QList<Session*> lookForItem(const QString& label);
+ QModelIndex getSection(const SectionType type);
void updateView();