mirror of
https://github.com/KDE/konsole.git
synced 2026-06-12 16:05:45 -04:00
Port away from kdelibs4support.
Original work by Dāvis Mosāns. REVIEW: 127625 REVIEW: 126808
This commit is contained in:
@@ -40,13 +40,14 @@ SessionListModel::SessionListModel(QObject* parent)
|
||||
|
||||
void SessionListModel::setSessions(const QList<Session*>& sessions)
|
||||
{
|
||||
beginResetModel();
|
||||
_sessions = sessions;
|
||||
|
||||
foreach(Session * session, sessions) {
|
||||
connect(session, &Konsole::Session::finished, this, &Konsole::SessionListModel::sessionFinished);
|
||||
}
|
||||
|
||||
reset();
|
||||
endResetModel();
|
||||
}
|
||||
|
||||
QVariant SessionListModel::data(const QModelIndex& index, int role) const
|
||||
|
||||
Reference in New Issue
Block a user