m_filterBar(0),
m_showDeleteCommand(0),
m_confirmMoveToTrash(0),
- m_confirmDelete(0)
+ m_confirmDelete(0),
+ m_browseThroughArchives(0)
{
const int spacing = KDialog::spacingHint();
// 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.
settings->setEditableUrl(m_editableUrl->isChecked());
settings->setFilterBar(m_filterBar->isChecked());
- KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals");
-
- KConfigGroup trashConfig(globalConfig, "Trash");
+ KSharedConfig::Ptr konqConfig = KSharedConfig::openConfig("konquerorrc", KConfig::IncludeGlobals);
+ KConfigGroup trashConfig(konqConfig, "Trash");
trashConfig.writeEntry("ConfirmTrash", m_confirmMoveToTrash->isChecked());
trashConfig.writeEntry("ConfirmDelete", m_confirmDelete->isChecked());
trashConfig.sync();
- KConfigGroup kdeConfig(globalConfig, "KDE");
+ KConfigGroup kdeConfig(KGlobal::config(), "KDE");
kdeConfig.writeEntry("ShowDeleteCommand", m_showDeleteCommand->isChecked());
kdeConfig.sync();
+
+ settings->setBrowseThroughArchives(m_browseThroughArchives->isChecked());
}
void GeneralSettingsPage::restoreDefaults()
settings->setDefaults();
// TODO: reset default settings for trash and show delete command...
- //KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals");
- //KConfigGroup trashConfig(konqConfig, "Trash");
- //KConfigGroup kdeConfig(globalConfig, "KDE");
loadSettings();
}
m_editableUrl->setChecked(settings->editableUrl());
m_filterBar->setChecked(settings->filterBar());
- const KSharedConfig::Ptr globalConfig = KSharedConfig::openConfig("kdeglobals");
-
- const KConfigGroup trashConfig(globalConfig, "Trash");
+ KSharedConfig::Ptr konqConfig = KSharedConfig::openConfig("konquerorrc", KConfig::IncludeGlobals);
+ const KConfigGroup trashConfig(konqConfig, "Trash");
m_confirmMoveToTrash->setChecked(trashConfig.readEntry("ConfirmTrash", false));
m_confirmDelete->setChecked(trashConfig.readEntry("ConfirmDelete", true));
- const KConfigGroup kdeConfig(globalConfig, "KDE");
+ const KConfigGroup kdeConfig(KGlobal::config(), "KDE");
m_showDeleteCommand->setChecked(kdeConfig.readEntry("ShowDeleteCommand", false));
+
+ m_browseThroughArchives->setChecked(settings->browseThroughArchives());
}
#include "generalsettingspage.moc"