[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdeplasma-addons/frameworks] runners/dictionary: make the config ui work
From:       Marco Martin <notmart () gmail ! com>
Date:       2014-07-31 21:35:29
Message-ID: E1XCy0X-00068K-Ip () scm ! kde ! org
[Download RAW message or body]

Git commit 15a89459f4da80b33c6cb363e6aad3a1fb9adb5b by Marco Martin.
Committed on 31/07/2014 at 21:33.
Pushed by mart into branch 'frameworks'.

make the config ui work

M  +1    -1    runners/dictionary/CMakeLists.txt
M  +2    -1    runners/dictionary/dictionaryrunner_config.cpp

http://commits.kde.org/kdeplasma-addons/15a89459f4da80b33c6cb363e6aad3a1fb9=
adb5b

diff --git a/runners/dictionary/CMakeLists.txt b/runners/dictionary/CMakeLi=
sts.txt
index 862b21e..e5ff6cd 100644
--- a/runners/dictionary/CMakeLists.txt
+++ b/runners/dictionary/CMakeLists.txt
@@ -2,7 +2,7 @@ set(dictionaryrunner_SRCS dictionaryrunner.cpp dictionaryma=
tchengine.cpp)
 set(kcm_dictionaryrunner_SRCS dictionaryrunner_config.cpp)
 =

 add_library(krunner_dictionary ${dictionaryrunner_SRCS})
-add_library(kcm_krunner_dictionary ${kcm_dictionaryrunner_SRCS})
+add_library(kcm_krunner_dictionary MODULE ${kcm_dictionaryrunner_SRCS})
 =

 target_link_libraries(krunner_dictionary KF5::Runner KF5::I18n KF5::KCMUti=
ls)
 target_link_libraries(kcm_krunner_dictionary KF5::Runner KF5::I18n KF5::KC=
MUtils)
diff --git a/runners/dictionary/dictionaryrunner_config.cpp b/runners/dicti=
onary/dictionaryrunner_config.cpp
index 520c847..ba48ca4 100644
--- a/runners/dictionary/dictionaryrunner_config.cpp
+++ b/runners/dictionary/dictionaryrunner_config.cpp
@@ -8,8 +8,9 @@
 #include <QLineEdit>
 #include <KSharedConfig>
 #include <klocalizedstring.h>
+#include <KPluginFactory>
 =

-K_EXPORT_RUNNER_CONFIG(dictionary, DictionaryRunnerConfig)
+K_PLUGIN_FACTORY(DictionaryRunnerConfigFactory, registerPlugin<DictionaryR=
unnerConfig>("kcm_krunner_dictionary");)
 =

 DictionaryRunnerConfig::DictionaryRunnerConfig(QWidget* parent, const QVar=
iantList& args) :
 	KCModule(parent, args)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic