┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-10-24 21:12:11 +0000
committerPeter Penz <[email protected]>2008-10-24 21:12:11 +0000
commita96437d600ac1dad74084dff3fcd870cd8eb5024 (patch)
treef0b8edd6a2b4361f92c49b49a570e4d88f893e61 /src
parentdc6bd8046f35993cae0f3659fd2420e18d0fe472 (diff)
Provide a UI option for the "auto expand folders during drag operations" feature. The feature is not 100 % finished yet (dragging into a folder having a different view type does not work yet), but it's important to get in the UI string for the translators.
svn path=/trunk/KDE/kdebase/apps/; revision=875582
Diffstat (limited to 'src')
-rw-r--r--src/generalsettingspage.cpp8
-rw-r--r--src/generalsettingspage.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/generalsettingspage.cpp b/src/generalsettingspage.cpp
index 70fe72855..a6775df19 100644
--- a/src/generalsettingspage.cpp
+++ b/src/generalsettingspage.cpp
@@ -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"
diff --git a/src/generalsettingspage.h b/src/generalsettingspage.h
index da49326c5..9af377489 100644
--- a/src/generalsettingspage.h
+++ b/src/generalsettingspage.h
@@ -58,6 +58,7 @@ private:
QCheckBox* m_browseThroughArchives;
QCheckBox* m_renameInline;
+ QCheckBox* m_autoExpandFolders;
};
#endif