MCPcopy Create free account
hub / github.com/KDE/kdevelop / SessionListModel

Method SessionListModel

plugins/welcomepage/sessionlistmodel.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <algorithm>
14
15SessionListModel::SessionListModel(QObject* parent)
16 : QAbstractListModel(parent)
17 , m_sessions(KDevelop::SessionController::availableSessionInfos())
18{
19 // TODO: SessionController misses a signal for new sessions, Sessions main menu would also want that
20 connect(KDevelop::Core::self()->sessionController(), &KDevelop::SessionController::sessionDeleted, this,
21 &SessionListModel::onSessionDeleted);
22}
23
24int SessionListModel::size() const
25{

Callers

nothing calls this directly

Calls 1

sessionControllerMethod · 0.80

Tested by

no test coverage detected