Changeset View
Changeset View
Standalone View
Standalone View
interfaces/notificationsmodel.cpp
Show All 23 Lines | |||||
24 | #include <QDebug> | 24 | #include <QDebug> | ||
25 | #include <QDBusInterface> | 25 | #include <QDBusInterface> | ||
26 | 26 | | |||
27 | #include <KSharedConfig> | 27 | #include <KSharedConfig> | ||
28 | #include <QIcon> | 28 | #include <QIcon> | ||
29 | 29 | | |||
30 | //#include "modeltest.h" | 30 | //#include "modeltest.h" | ||
31 | 31 | | |||
32 | //In older Qt released, qAsConst isnt available | ||||
33 | #ifdef SAILFISHOS | ||||
34 | #define qAsConst | ||||
apol: Use your fancy header? | |||||
35 | #endif | ||||
36 | | ||||
32 | NotificationsModel::NotificationsModel(QObject* parent) | 37 | NotificationsModel::NotificationsModel(QObject* parent) | ||
33 | : QAbstractListModel(parent) | 38 | : QAbstractListModel(parent) | ||
34 | , m_dbusInterface(nullptr) | 39 | , m_dbusInterface(nullptr) | ||
35 | { | 40 | { | ||
36 | 41 | | |||
37 | //new ModelTest(this, this); | 42 | //new ModelTest(this, this); | ||
38 | 43 | | |||
39 | connect(this, &QAbstractItemModel::rowsInserted, | 44 | connect(this, &QAbstractItemModel::rowsInserted, | ||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |
Use your fancy header?