diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-10-13 02:58:22 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-10-13 02:58:22 +0200 |
commit | cfd782923c60d15e5ec43d3ef357b646011f664c (patch) | |
tree | c494ac1fa8571ad52ce181c59f41adb6bfcdfece /src/settings.cpp | |
parent | Actions reorganization. Now we can configure all them :) (diff) | |
download | rekonq-cfd782923c60d15e5ec43d3ef357b646011f664c.tar.xz |
Saving shortcuts change
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 9 |
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(); } |