summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-13 02:58:22 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-10-13 02:58:22 +0200
commitcfd782923c60d15e5ec43d3ef357b646011f664c (patch)
treec494ac1fa8571ad52ce181c59f41adb6bfcdfece /src
parentActions reorganization. Now we can configure all them :) (diff)
downloadrekonq-cfd782923c60d15e5ec43d3ef357b646011f664c.tar.xz
Saving shortcuts change
Diffstat (limited to 'src')
-rw-r--r--src/settings.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index ec5094c2..9711d250 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -67,6 +67,7 @@ private:
Ui::webkit webkitUi;
KCModuleProxy *ebrowsingModule;
KCModuleProxy *cookiesModule;
+ KShortcutsEditor *shortcutsEditor;
Private(SettingsDialog *parent);
@@ -110,8 +111,8 @@ Private::Private(SettingsDialog *parent)
KIcon webkitIcon = KIcon(QIcon(webkitIconPath));
pageItem->setIcon(webkitIcon);
- widget = new KShortcutsEditor(Application::instance()->mainWindow()->actionCollection(),parent);
- pageItem = parent->addPage(widget , i18n("Shortcuts"));
+ shortcutsEditor = new KShortcutsEditor(Application::instance()->mainWindow()->actionCollection(),parent);
+ pageItem = parent->addPage(shortcutsEditor , i18n("Shortcuts"));
pageItem->setIcon(KIcon("configure-shortcuts"));
KCModuleInfo ebrowsingInfo("ebrowsing.desktop");
@@ -143,7 +144,8 @@ SettingsDialog::SettingsDialog(QWidget *parent)
connect(d->ebrowsingModule, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
connect(d->cookiesModule, SIGNAL(changed(bool)), this, SLOT(updateButtons()));
-
+ connect(d->shortcutsEditor, SIGNAL(keyChange()), this, SLOT(updateButtons()));
+
connect(this, SIGNAL(applyClicked()), this, SLOT(saveSettings()));
connect(this, SIGNAL(okClicked()), this, SLOT(saveSettings()));
@@ -201,6 +203,7 @@ void SettingsDialog::saveSettings()
ReKonfig::self()->writeConfig();
d->ebrowsingModule->save();
d->cookiesModule->save();
+ d->shortcutsEditor->save();
}