Commit 065be2af authored by Cyril Rossi's avatar Cyril Rossi

KCM Activities port to KCModuleData to highlight default at module level

Fix default value for ResourceScoringEnabled in kcfg file.
Must be set to true because what-to-remember default is AllApplication.
parent e3bcfc3d
......@@ -49,6 +49,14 @@ qt5_add_dbus_interface (
features_interface
)
kcmutils_generate_module_data(
KAMD_KCM_SRCS
MODULE_DATA_HEADER kactivitiesdata.h
MODULE_DATA_CLASS_NAME KActivitiesData
SETTINGS_HEADERS kactivitymanagerd_settings.h kactivitymanagerd_plugins_settings.h
SETTINGS_CLASSES KActivityManagerdSettings KActivityManagerdPluginsSettings
)
kconfig_add_kcfg_files(KAMD_KCM_SRCS kactivitymanagerd_settings.kcfgc GENERATE_MOC)
kconfig_add_kcfg_files(KAMD_KCM_SRCS kactivitymanagerd_plugins_settings.kcfgc GENERATE_MOC)
......
......@@ -27,8 +27,9 @@
#include "ActivitiesTab.h"
#include "SwitchingTab.h"
#include "PrivacyTab.h"
#include "kactivitiesdata.h"
K_PLUGIN_FACTORY(ActivitiesKCMFactory, registerPlugin<MainConfigurationWidget>();)
K_PLUGIN_FACTORY(ActivitiesKCMFactory, registerPlugin<MainConfigurationWidget>(); registerPlugin<KActivitiesData>();)
class MainConfigurationWidget::Private : public Ui::MainConfigurationWidgetBase {
public:
......
......@@ -36,7 +36,6 @@ public:
explicit PrivacyTab(QWidget *parent);
~PrivacyTab() override;
bool isDefault();
KCoreConfigSkeleton *pluginConfig();
public Q_SLOTS:
......
......@@ -10,7 +10,7 @@
<default>false</default>
</entry>
<entry name="resourceScoringEnabled" key="org.kde.ActivityManager.ResourceScoringEnabled" type="Bool">
<default>false</default>
<default>true</default>
</entry>
</group>
</kcfg>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment