]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/navigation/navigationsettingspage.cpp
Don't block unmounting when terminal panel's cwd is the mountpoint
[dolphin.git] / src / settings / navigation / navigationsettingspage.cpp
index 81ea3bc8212e23dae6e2821a317d4f822348bcbd..e37a35d8eb9e6141319243338882e254c4f5518f 100644 (file)
@@ -21,7 +21,6 @@
 
 #include "dolphin_generalsettings.h"
 
-#include <KDialog>
 #include <KLocalizedString>
 
 #include <QCheckBox>
@@ -32,13 +31,10 @@ NavigationSettingsPage::NavigationSettingsPage(QWidget* parent) :
     m_openArchivesAsFolder(0),
     m_autoExpandFolders(0)
 {
-    const int spacing = KDialog::spacingHint();
-
     QVBoxLayout* topLayout = new QVBoxLayout(this);
     QWidget* vBox = new QWidget(this);
     QVBoxLayout *vBoxLayout = new QVBoxLayout(vBox);
     vBoxLayout->setMargin(0);
-    vBoxLayout->setSpacing(spacing);
     vBoxLayout->setAlignment(Qt::AlignTop);
 
     m_openArchivesAsFolder = new QCheckBox(i18nc("@option:check", "Open archives as folder"), vBox);
@@ -47,11 +43,6 @@ NavigationSettingsPage::NavigationSettingsPage(QWidget* parent) :
     m_autoExpandFolders = new QCheckBox(i18nc("option:check", "Open folders during drag operations"), vBox);
     vBoxLayout->addWidget(m_autoExpandFolders);
 
-    // Add a dummy widget with no restriction regarding
-    // a vertical resizing. This assures that the dialog layout
-    // is not stretched vertically.
-    new QWidget(vBox);
-
     topLayout->addWidget(vBox);
 
     loadSettings();