diff options
| author | Alexander Lohnau <[email protected]> | 2020-05-04 20:30:25 +0200 |
|---|---|---|
| committer | Alexander Lohnau <[email protected]> | 2020-05-04 20:36:15 +0200 |
| commit | fd827e412e56e54f4694dd08d170ac8274edbf9a (patch) | |
| tree | 5b2a3bc6781a144074db1e7565da4bc34fb7b4ab /src/settings/kcm/kcmdolphinnavigation.cpp | |
| parent | ddcca5fb912cd91c7c6c535e01fb963869ccaee9 (diff) | |
Dolphin: Cleanup kcms
Summary: Refactor forearch, adjust formatting, remove unnecessary version checks.
Test Plan: Compiles
Reviewers: #dolphin, ngraham, elvisangelaccio, meven
Reviewed By: #dolphin, ngraham
Subscribers: kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D29377
Diffstat (limited to 'src/settings/kcm/kcmdolphinnavigation.cpp')
| -rw-r--r-- | src/settings/kcm/kcmdolphinnavigation.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/settings/kcm/kcmdolphinnavigation.cpp b/src/settings/kcm/kcmdolphinnavigation.cpp index 2cdabdeee..f8de4eed2 100644 --- a/src/settings/kcm/kcmdolphinnavigation.cpp +++ b/src/settings/kcm/kcmdolphinnavigation.cpp @@ -29,23 +29,17 @@ K_PLUGIN_FACTORY(KCMDolphinNavigationConfigFactory, registerPlugin<DolphinNavigationConfigModule>(QStringLiteral("dolphinnavigation"));) -DolphinNavigationConfigModule::DolphinNavigationConfigModule(QWidget* parent, const QVariantList& args) : - KCModule(parent), +DolphinNavigationConfigModule::DolphinNavigationConfigModule(QWidget *parent, const QVariantList &args) : + KCModule(parent, args), m_navigation(nullptr) { - Q_UNUSED(args) - setButtons(KCModule::Default | KCModule::Help); QVBoxLayout* topLayout = new QVBoxLayout(this); topLayout->setContentsMargins(0, 0, 0, 0); m_navigation = new NavigationSettingsPage(this); -#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, {}); } |
