| 13 | #include <algorithm> |
| 14 | |
| 15 | SessionListModel::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 | |
| 24 | int SessionListModel::size() const |
| 25 | { |
nothing calls this directly
no test coverage detected