]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/kcm/kcmdolphinnavigation.cpp
Refactoring to reduce size of openItemContextMenu and add the ContextType TimelineOrS...
[dolphin.git] / src / settings / kcm / kcmdolphinnavigation.cpp
index 54cf7ed3c0b29ec395df97c27b73a6c3d8145f38..6b88dadacb0559fe13d183fc9c52d1c5248709af 100644 (file)
 
 #include "kcmdolphinnavigation.h"
 
+#include "settings/navigation/navigationsettingspage.h"
+
 #include <KPluginFactory>
 #include <KPluginLoader>
 
-#include <settings/navigation/navigationsettingspage.h>
-
 #include <QVBoxLayout>
 
 K_PLUGIN_FACTORY(KCMDolphinNavigationConfigFactory, registerPlugin<DolphinNavigationConfigModule>(QStringLiteral("dolphinnavigation"));)
@@ -32,15 +32,15 @@ DolphinNavigationConfigModule::DolphinNavigationConfigModule(QWidget* parent, co
     KCModule(parent),
     m_navigation(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_navigation = new NavigationSettingsPage(this);
-    connect(m_navigation, &NavigationSettingsPage::changed, this, static_cast<void(DolphinNavigationConfigModule::*)()>(&DolphinNavigationConfigModule::changed));
+    connect(m_navigation, &NavigationSettingsPage::changed, this, QOverload<>::of(&DolphinNavigationConfigModule::changed));
     topLayout->addWidget(m_navigation, 0, nullptr);
 }