diff options
author | Tim Jenssen <tim.jenssen@qt.io> | 2016-08-12 13:38:53 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2016-08-31 09:00:58 +0000 |
commit | 912129913848d61e7ca0a5e76b9531636eccf1da (patch) | |
tree | 93634a1d349734de4006c0be4d012aad0ca03e1a /src/plugins/projectexplorer/projectwelcomepage.h | |
parent | 83ea1f4deb4f5752f4eb1e36664761a7cdc79a9e (diff) | |
download | qt-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.h | 23 |
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 { |