Changeset View
Changeset View
Standalone View
Standalone View
addons/sessionapplet/engine/katesessionsmodel.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | KateSessionsModel::KateSessionsModel(QObject *parent) | 46 | KateSessionsModel::KateSessionsModel(QObject *parent) | ||
47 | : QStandardItemModel(parent) /*, m_config(0)*/ | 47 | : QStandardItemModel(parent) /*, m_config(0)*/ | ||
48 | { | 48 | { | ||
49 | KDirWatch *dirwatch = new KDirWatch( this ); | 49 | KDirWatch *dirwatch = new KDirWatch( this ); | ||
50 | m_sessionsDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/kate/sessions"); | 50 | m_sessionsDir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QStringLiteral("/kate/sessions"); | ||
51 | 51 | | |||
52 | dirwatch->addDir( m_sessionsDir ); | 52 | dirwatch->addDir( m_sessionsDir ); | ||
53 | 53 | | |||
54 | connect( dirwatch, SIGNAL(dirty(QString)), this, SLOT(slotUpdateSessionMenu()) ); | 54 | connect(dirwatch, &KDirWatch::dirty, this, &KateSessionsModel::slotUpdateSessionMenu); | ||
55 | slotUpdateSessionMenu(); | 55 | slotUpdateSessionMenu(); | ||
56 | } | 56 | } | ||
57 | 57 | | |||
58 | KateSessionsModel::~KateSessionsModel() | 58 | KateSessionsModel::~KateSessionsModel() | ||
59 | { | 59 | { | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | 62 | | |||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |