Commit 262ec0eb authored by Cyril Rossi's avatar Cyril Rossi
Browse files

KCM Device Automounter use KCModuleData to highlight default at module level

parent 065be2af
......@@ -6,6 +6,14 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
ki18n_wrap_ui(kcm_device_automounter_SRCS DeviceAutomounterKCM.ui)
kcmutils_generate_module_data(
kcm_device_automounter_SRCS
MODULE_DATA_HEADER DeviceAutomounterData.h
MODULE_DATA_CLASS_NAME DeviceAutomounterData
SETTINGS_HEADERS AutomounterSettings.h
SETTINGS_CLASSES AutomounterSettings
)
kconfig_add_kcfg_files(kcm_device_automounter_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../lib/AutomounterSettingsBase.kcfgc ${CMAKE_CURRENT_SOURCE_DIR}/LayoutSettings.kcfgc)
add_library(kcm_device_automounter ${kcm_device_automounter_SRCS} ${device_automounter_lib_SRCS})
......
......@@ -36,8 +36,9 @@
#include "AutomounterSettings.h"
#include "LayoutSettings.h"
#include "DeviceModel.h"
#include "DeviceAutomounterData.h"
K_PLUGIN_FACTORY(DeviceAutomounterKCMFactory, registerPlugin<DeviceAutomounterKCM>();)
K_PLUGIN_FACTORY(DeviceAutomounterKCMFactory, registerPlugin<DeviceAutomounterKCM>(); registerPlugin<DeviceAutomounterData>();)
DeviceAutomounterKCM::DeviceAutomounterKCM(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)//DeviceAutomounterKCMFactory::componentData(), parent)
......
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