#include "settings/services/servicessettingspage.h"
+#include <kconfigwidgets_version.h>
#include <KPluginFactory>
#include <KPluginLoader>
KCModule(parent),
m_services(nullptr)
{
- Q_UNUSED(args);
+ Q_UNUSED(args)
setButtons(KCModule::Default | KCModule::Help);
QVBoxLayout* topLayout = new QVBoxLayout(this);
- topLayout->setMargin(0);
+ topLayout->setContentsMargins(0, 0, 0, 0);
m_services = new ServicesSettingsPage(this);
- connect(m_services, &ServicesSettingsPage::changed, this, static_cast<void(DolphinServicesConfigModule::*)()>(&DolphinServicesConfigModule::changed));
- topLayout->addWidget(m_services, 0, nullptr);
+#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0)
+ connect(m_services, &ServicesSettingsPage::changed, this, QOverload<>::of(&DolphinServicesConfigModule::changed));
+#else
+ connect(m_services, &ServicesSettingsPage::changed, this, &DolphinServicesConfigModule::markAsChanged);
+#endif
+ topLayout->addWidget(m_services, 0, {});
}
DolphinServicesConfigModule::~DolphinServicesConfigModule()