summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectwelcomepage.h
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2016-08-12 13:38:53 +0200
committerTim Jenssen <tim.jenssen@qt.io>2016-08-31 09:00:58 +0000
commit912129913848d61e7ca0a5e76b9531636eccf1da (patch)
tree93634a1d349734de4006c0be4d012aad0ca03e1a /src/plugins/projectexplorer/projectwelcomepage.h
parent83ea1f4deb4f5752f4eb1e36664761a7cdc79a9e (diff)
downloadqt-creator-912129913848d61e7ca0a5e76b9531636eccf1da.tar.gz
Sessions: move sessionmodel to an extra file
Change-Id: I96084e925ce6a47533f9c87a988ceb0834fe4037 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectwelcomepage.h')
-rw-r--r--src/plugins/projectexplorer/projectwelcomepage.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/plugins/projectexplorer/projectwelcomepage.h b/src/plugins/projectexplorer/projectwelcomepage.h
index 2d56e4c103..56ff469a70 100644
--- a/src/plugins/projectexplorer/projectwelcomepage.h
+++ b/src/plugins/projectexplorer/projectwelcomepage.h
@@ -36,28 +36,7 @@ QT_END_NAMESPACE
namespace ProjectExplorer {
namespace Internal {
-class SessionModel : public QAbstractListModel
-{
- Q_OBJECT
-
-public:
- enum { DefaultSessionRole = Qt::UserRole+1, LastSessionRole, ActiveSessionRole, ProjectsPathRole, ProjectsDisplayRole };
-
- explicit SessionModel(QObject *parent = nullptr);
-
- int rowCount(const QModelIndex &parent) const override;
- QVariant data(const QModelIndex &index, int role) const override;
- QHash<int, QByteArray> roleNames() const override;
-
- Q_SCRIPTABLE bool isDefaultVirgin() const;
-
-public slots:
- void resetSessions();
- void cloneSession(const QString &session);
- void deleteSession(const QString &session);
- void renameSession(const QString &session);
-};
-
+class SessionModel;
class ProjectModel : public QAbstractListModel
{