forked from qt-creator/qt-creator
Sessions: introduce SessionView
This will replace the simple session list in SessionManager UI. Change-Id: Idec2fa2e4629b9986a5d274d6da5129e779e2100 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -45,6 +45,16 @@ SessionModel::SessionModel(QObject *parent)
|
||||
this, &SessionModel::resetSessions);
|
||||
}
|
||||
|
||||
int SessionModel::indexOfSession(const QString &session)
|
||||
{
|
||||
return SessionManager::sessions().indexOf(session);
|
||||
}
|
||||
|
||||
QString SessionModel::sessionAt(int row)
|
||||
{
|
||||
return SessionManager::sessions().value(row, QString());
|
||||
}
|
||||
|
||||
int SessionModel::rowCount(const QModelIndex &) const
|
||||
{
|
||||
return SessionManager::sessions().count();
|
||||
|
||||
Reference in New Issue
Block a user