]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/kcm/kcmdolphinservices.cpp
Change default Dolphin toolbar layout
[dolphin.git] / src / settings / kcm / kcmdolphinservices.cpp
index 202bc5cf5decc7ebbced37fe766481a59186c6ea..94494c184b38291118015a161e4182db1e1faefd 100644 (file)
@@ -37,10 +37,10 @@ DolphinServicesConfigModule::DolphinServicesConfigModule(QWidget* parent, const
     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));
+    connect(m_services, &ServicesSettingsPage::changed, this, QOverload<>::of(&DolphinServicesConfigModule::changed));
     topLayout->addWidget(m_services, 0, nullptr);
 }