diff options
Diffstat (limited to 'src/plugins/projectexplorer/projectwelcomepage.cpp')
-rw-r--r-- | src/plugins/projectexplorer/projectwelcomepage.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/plugins/projectexplorer/projectwelcomepage.cpp b/src/plugins/projectexplorer/projectwelcomepage.cpp index 504ec3fbbc..f94d4debee 100644 --- a/src/plugins/projectexplorer/projectwelcomepage.cpp +++ b/src/plugins/projectexplorer/projectwelcomepage.cpp @@ -117,7 +117,7 @@ void SessionModel::resetSessions() void SessionModel::cloneSession(const QString &session) { - SessionNameInputDialog newSessionInputDialog(SessionManager::sessions(), 0); + SessionNameInputDialog newSessionInputDialog(SessionManager::sessions(), nullptr); newSessionInputDialog.setWindowTitle(tr("New session name")); newSessionInputDialog.setValue(session + QLatin1String(" (2)")); @@ -145,7 +145,7 @@ void SessionModel::deleteSession(const QString &session) void SessionModel::renameSession(const QString &session) { - SessionNameInputDialog newSessionInputDialog(SessionManager::sessions(), 0); + SessionNameInputDialog newSessionInputDialog(SessionManager::sessions(), nullptr); newSessionInputDialog.setWindowTitle(tr("New session name")); newSessionInputDialog.setValue(session); @@ -180,7 +180,6 @@ QVariant ProjectModel::data(const QModelIndex &index, int role) const switch (role) { case Qt::DisplayRole: return data.second; - break; case FilePathRole: return data.first; case PrettyFilePathRole: @@ -188,8 +187,6 @@ QVariant ProjectModel::data(const QModelIndex &index, int role) const default: return QVariant(); } - - return QVariant(); } QHash<int, QByteArray> ProjectModel::roleNames() const @@ -209,11 +206,6 @@ void ProjectModel::resetProjects() /////////////////// -ProjectWelcomePage::ProjectWelcomePage() : - m_sessionModel(0), m_projectModel(0) -{ -} - void ProjectWelcomePage::facilitateQml(QQmlEngine *engine) { m_sessionModel = new SessionModel(this); |