diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2012-02-23 17:50:30 +0100 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-02-23 18:14:56 +0100 |
commit | 9bc042e09f0f0efe44dfe2540faa4b18594400b0 (patch) | |
tree | 4eb5304e268ad8f2b42379d165e21c4f84131b43 /src/plugins/projectexplorer/sessiondialog.cpp | |
parent | 7e380e9d0cb31349f20d7fb2a5c0f07a2865dd1d (diff) | |
download | qt-creator-9bc042e09f0f0efe44dfe2540faa4b18594400b0.tar.gz |
WelcomePage: Add tooltip for sessions
The tooltip allows renaming, cloning and deleting and shows
included projects.
The following method was added to Session:
QStringList projectsForSessionName(const QString &session) const;
I moved the SessionNameInputDialog into the header to reuse it.
I added new roles to SessionModel (ProjectsPathRole, ProjectsDisplayRole).
The following slots were added to SessionModel to expose the backend
functionality:
void cloneSession(const QString &session);
void deleteSession(const QString &session);
void renameSession(const QString &session);
Change-Id: I0182a26dc63b4f051ea948756decd5413c832c60
Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/projectexplorer/sessiondialog.cpp')
-rw-r--r-- | src/plugins/projectexplorer/sessiondialog.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/plugins/projectexplorer/sessiondialog.cpp b/src/plugins/projectexplorer/sessiondialog.cpp index 7598be59c2..384f8a1c9d 100644 --- a/src/plugins/projectexplorer/sessiondialog.cpp +++ b/src/plugins/projectexplorer/sessiondialog.cpp @@ -85,26 +85,6 @@ void SessionValidator::fixup(QString &input) const input = copy; } - -class SessionNameInputDialog : public QDialog -{ - Q_OBJECT -public: - SessionNameInputDialog(const QStringList &sessions, QWidget *parent = 0); - - void setValue(const QString &value); - QString value() const; - bool isSwitchToRequested() const; - -private slots: - void clicked(QAbstractButton *button); - -private: - QLineEdit *m_newSessionLineEdit; - QPushButton *m_switchToButton; - bool m_usedSwitchTo; -}; - SessionNameInputDialog::SessionNameInputDialog(const QStringList &sessions, QWidget *parent) : QDialog(parent), m_usedSwitchTo(false) { @@ -299,5 +279,3 @@ void SessionDialog::switchToSession() } // namespace Internal } // namespace ProjectExplorer - -#include "sessiondialog.moc" |