X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8eb9b508ca87fb1d634d8b8ba62c054ed04466d2..885916b7b4:/src/settings/kcm/kcmdolphinnavigation.cpp diff --git a/src/settings/kcm/kcmdolphinnavigation.cpp b/src/settings/kcm/kcmdolphinnavigation.cpp index f4861b065..2cdabdeee 100644 --- a/src/settings/kcm/kcmdolphinnavigation.cpp +++ b/src/settings/kcm/kcmdolphinnavigation.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009 by Peter Penz * + * Copyright (C) 2009 by Peter Penz * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -19,36 +19,34 @@ #include "kcmdolphinnavigation.h" -#include -#include -#include +#include "settings/navigation/navigationsettingspage.h" +#include + #include #include -#include - #include -K_PLUGIN_FACTORY(KCMDolphinNavigationConfigFactory, registerPlugin("dolphinnavigation");) -K_EXPORT_PLUGIN(KCMDolphinNavigationConfigFactory("kcmdolphinnavigation")) +K_PLUGIN_FACTORY(KCMDolphinNavigationConfigFactory, registerPlugin(QStringLiteral("dolphinnavigation"));) DolphinNavigationConfigModule::DolphinNavigationConfigModule(QWidget* parent, const QVariantList& args) : - KCModule(KCMDolphinNavigationConfigFactory::componentData(), parent), - m_navigation(0) + KCModule(parent), + m_navigation(nullptr) { - Q_UNUSED(args); - - KGlobal::locale()->insertCatalog("dolphin"); + Q_UNUSED(args) setButtons(KCModule::Default | KCModule::Help); QVBoxLayout* topLayout = new QVBoxLayout(this); - topLayout->setMargin(0); - topLayout->setSpacing(KDialog::spacingHint()); + topLayout->setContentsMargins(0, 0, 0, 0); m_navigation = new NavigationSettingsPage(this); - connect(m_navigation, SIGNAL(changed()), this, SLOT(changed())); - topLayout->addWidget(m_navigation, 0, 0); +#if KCONFIGWIDGETS_VERSION < QT_VERSION_CHECK(5, 64, 0) + connect(m_navigation, &NavigationSettingsPage::changed, this, QOverload<>::of(&DolphinNavigationConfigModule::changed)); +#else + connect(m_navigation, &NavigationSettingsPage::changed, this, &DolphinNavigationConfigModule::markAsChanged); +#endif + topLayout->addWidget(m_navigation, 0, {}); } DolphinNavigationConfigModule::~DolphinNavigationConfigModule()