From 8ba61eb0c77221f94b42f2f6a532e70da3d27ccb Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 21 Jan 2008 16:07:45 +0000 Subject: 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 --- src/generalsettingspage.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/generalsettingspage.cpp') 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" -- cgit v1.3