]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Provide a UI option for the "auto expand folders during drag operations" feature...
authorPeter Penz <peter.penz19@gmail.com>
Fri, 24 Oct 2008 21:12:11 +0000 (21:12 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 24 Oct 2008 21:12:11 +0000 (21:12 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=875582

src/generalsettingspage.cpp
src/generalsettingspage.h

index 70fe72855ca6de9bc0f71cbdfe4262d45d5947d5..a6775df19e65e21747d0e0a108383a94e579bbbb 100644 (file)
@@ -42,7 +42,8 @@ GeneralSettingsPage::GeneralSettingsPage(DolphinMainWindow* mainWin, QWidget* pa
     m_showZoomSlider(0),
     m_showSpaceInfo(0),
     m_browseThroughArchives(0),
-    m_renameInline(0)
+    m_renameInline(0),
+    m_autoExpandFolders(0)
 {
     Q_UNUSED(mainWin);
 
@@ -95,6 +96,9 @@ GeneralSettingsPage::GeneralSettingsPage(DolphinMainWindow* mainWin, QWidget* pa
 
     m_renameInline = new QCheckBox(i18nc("@option:check", "Rename inline"), vBox);
     connect(m_renameInline, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
+    
+    m_autoExpandFolders = new QCheckBox(i18nc("option:check", "Open folders during drag operations"), vBox);
+    connect(m_autoExpandFolders, SIGNAL(toggled(bool)), this, SIGNAL(changed()));
 
     // Add a dummy widget with no restriction regarding
     // a vertical resizing. This assures that the dialog layout
@@ -130,6 +134,7 @@ void GeneralSettingsPage::applySettings()
     settings->setShowSpaceInfo(m_showSpaceInfo->isChecked());
     settings->setBrowseThroughArchives(m_browseThroughArchives->isChecked());
     settings->setRenameInline(m_renameInline->isChecked());
+    settings->setAutoExpandFolders(m_autoExpandFolders->isChecked());
 }
 
 void GeneralSettingsPage::restoreDefaults()
@@ -159,6 +164,7 @@ void GeneralSettingsPage::loadSettings()
     m_showSpaceInfo->setChecked(settings->showSpaceInfo());
     m_browseThroughArchives->setChecked(settings->browseThroughArchives());
     m_renameInline->setChecked(settings->renameInline());
+    m_autoExpandFolders->setChecked(settings->autoExpandFolders());
 }
 
 #include "generalsettingspage.moc"
index da49326c5c91a7e23e4612702890c476dc3a19ae..9af3774891494e201f92f817ef1b66d2805038a3 100644 (file)
@@ -58,6 +58,7 @@ private:
     
     QCheckBox* m_browseThroughArchives;
     QCheckBox* m_renameInline;
+    QCheckBox* m_autoExpandFolders;
 };
 
 #endif