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:
Tim Jenssen
2016-09-26 12:44:25 +02:00
parent 8c6e305a28
commit b8f198a985
6 changed files with 216 additions and 1 deletions

View File

@@ -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();