]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/general/generalsettingspage.cpp
Make global view properties the default setting
[dolphin.git] / src / settings / general / generalsettingspage.cpp
index d8f61ef90b17f00401bd551eea2d1f88c90c807a..daa74aff1dd1e2d7f1231c99922a72aba7df0592 100644 (file)
@@ -23,7 +23,6 @@
 #include "behaviorsettingspage.h"
 #include "confirmationssettingspage.h"
 #include "previewssettingspage.h"
-#include <settings/settingspagebase.h>
 #include "statusbarsettingspage.h"
 
 #include <KLocalizedString>
@@ -36,7 +35,7 @@ GeneralSettingsPage::GeneralSettingsPage(const QUrl& url, QWidget* parent) :
     m_pages()
 {
     QVBoxLayout* topLayout = new QVBoxLayout(this);
-    topLayout->setMargin(0);
+    topLayout->setContentsMargins(0, 0, 0, 0);
 
     QTabWidget* tabWidget = new QTabWidget(this);
 
@@ -65,7 +64,7 @@ GeneralSettingsPage::GeneralSettingsPage(const QUrl& url, QWidget* parent) :
     m_pages.append(confirmationsPage);
     m_pages.append(statusBarPage);
 
-    topLayout->addWidget(tabWidget, 0, 0);
+    topLayout->addWidget(tabWidget, 0, nullptr);
 }
 
 GeneralSettingsPage::~GeneralSettingsPage()