diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-21 11:46:46 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-01-21 11:46:46 +0100 |
commit | 42d34555397dd62399233fac1fbfa216c255ef68 (patch) | |
tree | be2a6cd0442915bbc39243d8423d717c8727fa25 /framework/settings | |
parent | bf96cfa0d75d256e036c76ec64f0f456014f2739 (diff) | |
download | kube-42d34555397dd62399233fac1fbfa216c255ef68.tar.gz kube-42d34555397dd62399233fac1fbfa216c255ef68.zip |
Akonadi2 -> Sink
Diffstat (limited to 'framework/settings')
-rw-r--r-- | framework/settings/CMakeLists.txt | 6 | ||||
-rw-r--r-- | framework/settings/qmldir | 4 | ||||
-rw-r--r-- | framework/settings/resourcelistmodel.cpp | 8 | ||||
-rw-r--r-- | framework/settings/settingsplugin.cpp | 2 |
4 files changed, 10 insertions, 10 deletions
diff --git a/framework/settings/CMakeLists.txt b/framework/settings/CMakeLists.txt index 5d61851f..017820b6 100644 --- a/framework/settings/CMakeLists.txt +++ b/framework/settings/CMakeLists.txt | |||
@@ -9,7 +9,7 @@ add_library(settingsplugin SHARED ${settingsplugin_SRCS}) | |||
9 | 9 | ||
10 | qt5_use_modules(settingsplugin Core Quick Qml) | 10 | qt5_use_modules(settingsplugin Core Quick Qml) |
11 | 11 | ||
12 | target_link_libraries(settingsplugin KF5::akonadi2common) | 12 | target_link_libraries(settingsplugin KF5::sinkcommon) |
13 | 13 | ||
14 | install(TARGETS settingsplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/akonadi2/settings) | 14 | install(TARGETS settingsplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/sink/settings) |
15 | install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/akonadi2/settings) \ No newline at end of file | 15 | install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kde/sink/settings) \ No newline at end of file |
diff --git a/framework/settings/qmldir b/framework/settings/qmldir index 4db161bc..1740f29a 100644 --- a/framework/settings/qmldir +++ b/framework/settings/qmldir | |||
@@ -1,3 +1,3 @@ | |||
1 | module org.kde.akonadi2.settings | 1 | module org.kde.sink.settings |
2 | 2 | ||
3 | plugin settingsplugin \ No newline at end of file | 3 | plugin settingsplugin |
diff --git a/framework/settings/resourcelistmodel.cpp b/framework/settings/resourcelistmodel.cpp index ebeaac32..ae1ffc15 100644 --- a/framework/settings/resourcelistmodel.cpp +++ b/framework/settings/resourcelistmodel.cpp | |||
@@ -1,15 +1,15 @@ | |||
1 | #include "resourcelistmodel.h" | 1 | #include "resourcelistmodel.h" |
2 | 2 | ||
3 | #include <akonadi2common/clientapi.h> | 3 | #include <sinkcommon/clientapi.h> |
4 | 4 | ||
5 | ResourceListModel::ResourceListModel(QObject *parent) : QIdentityProxyModel() | 5 | ResourceListModel::ResourceListModel(QObject *parent) : QIdentityProxyModel() |
6 | { | 6 | { |
7 | Akonadi2::Query query; | 7 | Sink::Query query; |
8 | query.syncOnDemand = false; | 8 | query.syncOnDemand = false; |
9 | query.processAll = false; | 9 | query.processAll = false; |
10 | query.liveQuery = true; | 10 | query.liveQuery = true; |
11 | query.requestedProperties << "type"; | 11 | query.requestedProperties << "type"; |
12 | m_model = Akonadi2::Store::loadModel<Akonadi2::ApplicationDomain::AkonadiResource>(query); | 12 | m_model = Sink::Store::loadModel<Sink::ApplicationDomain::SinkResource>(query); |
13 | } | 13 | } |
14 | 14 | ||
15 | ResourceListModel::~ResourceListModel() | 15 | ResourceListModel::~ResourceListModel() |
@@ -32,7 +32,7 @@ QVariant ResourceListModel::data(const QModelIndex& index, int role) const | |||
32 | auto srcIdx = mapToSource(index); | 32 | auto srcIdx = mapToSource(index); |
33 | switch (role) { | 33 | switch (role) { |
34 | case Id: | 34 | case Id: |
35 | return srcIdx.data(Akonadi2::Store::DomainObjectBaseRole).value<Akonadi2::ApplicationDomain::ApplicationDomainType::Ptr>()->identifier(); | 35 | return srcIdx.data(Sink::Store::DomainObjectBaseRole).value<Sink::ApplicationDomain::ApplicationDomainType::Ptr>()->identifier(); |
36 | case Type: | 36 | case Type: |
37 | return srcIdx.sibling(srcIdx.row(), 0).data(Qt::DisplayRole).toString(); | 37 | return srcIdx.sibling(srcIdx.row(), 0).data(Qt::DisplayRole).toString(); |
38 | } | 38 | } |
diff --git a/framework/settings/settingsplugin.cpp b/framework/settings/settingsplugin.cpp index 6c2951e7..ca670583 100644 --- a/framework/settings/settingsplugin.cpp +++ b/framework/settings/settingsplugin.cpp | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | void SettingsPlugin::registerTypes (const char *uri) | 9 | void SettingsPlugin::registerTypes (const char *uri) |
10 | { | 10 | { |
11 | Q_ASSERT(uri == QLatin1String("org.kde.akonadi2.settings")); | 11 | Q_ASSERT(uri == QLatin1String("org.kde.sink.settings")); |
12 | 12 | ||
13 | qmlRegisterType<ResourceListModel>(); | 13 | qmlRegisterType<ResourceListModel>(); |
14 | qmlRegisterType<ResourcesController>(uri, 1, 0, "Resources"); | 14 | qmlRegisterType<ResourcesController>(uri, 1, 0, "Resources"); |