┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/generalsettingspage.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-01-21 16:07:45 +0000
committerPeter Penz <[email protected]>2008-01-21 16:07:45 +0000
commit8ba61eb0c77221f94b42f2f6a532e70da3d27ccb (patch)
treea413fe13e87968411cc1343b6c120bebe1e4bf7f /src/generalsettingspage.cpp
parent1daef0dc52a18b03e2bc5b4ce85944356b6b5da3 (diff)
Make it configurable whether a browsing through archives should be done. The default setting is 'off'. TODO: cleanup the "General Settings" dialog and split it as "General" and "Startup".
svn path=/trunk/KDE/kdebase/apps/; revision=764378
Diffstat (limited to 'src/generalsettingspage.cpp')
-rw-r--r--src/generalsettingspage.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/generalsettingspage.cpp b/src/generalsettingspage.cpp
index f856de1b1..ac24f2a57 100644
--- a/src/generalsettingspage.cpp
+++ b/src/generalsettingspage.cpp
@@ -48,7 +48,8 @@ GeneralSettingsPage::GeneralSettingsPage(DolphinMainWindow* mainWin, QWidget* pa
m_filterBar(0),
m_showDeleteCommand(0),
m_confirmMoveToTrash(0),
- m_confirmDelete(0)
+ m_confirmDelete(0),
+ m_browseThroughArchives(0)
{
const int spacing = KDialog::spacingHint();
@@ -109,6 +110,8 @@ GeneralSettingsPage::GeneralSettingsPage(DolphinMainWindow* mainWin, QWidget* pa
// create 'Show the command 'Delete' in context menu' checkbox
m_showDeleteCommand = new QCheckBox(i18nc("@option:check", "Show 'Delete' command in context menu"), vBox);
+ m_browseThroughArchives = new QCheckBox(i18nc("option:check", "Browse through archives"), vBox);
+
// Add a dummy widget with no restriction regarding
// a vertical resizing. This assures that the dialog layout
// is not stretched vertically.
@@ -146,6 +149,8 @@ void GeneralSettingsPage::applySettings()
KConfigGroup kdeConfig(KGlobal::config(), "KDE");
kdeConfig.writeEntry("ShowDeleteCommand", m_showDeleteCommand->isChecked());
kdeConfig.sync();
+
+ settings->setBrowseThroughArchives(m_browseThroughArchives->isChecked());
}
void GeneralSettingsPage::restoreDefaults()
@@ -193,6 +198,8 @@ void GeneralSettingsPage::loadSettings()
const KConfigGroup kdeConfig(KGlobal::config(), "KDE");
m_showDeleteCommand->setChecked(kdeConfig.readEntry("ShowDeleteCommand", false));
+
+ m_browseThroughArchives->setChecked(settings->browseThroughArchives());
}
#include "generalsettingspage.moc"