summaryrefslogtreecommitdiff
path: root/src/webwindow
diff options
context:
space:
mode:
Diffstat (limited to 'src/webwindow')
-rw-r--r--src/webwindow/webwindow.cpp25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index 59c87571..faf919a7 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -61,7 +61,7 @@
#include <KUrl>
#include <KToolBar>
#include <KToggleFullScreenAction>
-#include <KShortcutsEditor>
+#include <KShortcutsDialog>
#include <QLabel>
#include <QStyle>
@@ -979,31 +979,16 @@ void WebWindow::keyPressEvent(QKeyEvent *kev)
void WebWindow::keyBindings()
{
- QPointer<KDialog> dialog = new KDialog(this);
+ QPointer<KShortcutsDialog> dialog = new KShortcutsDialog(KShortcutsEditor::AllActions, KShortcutsEditor::LetterShortcutsAllowed, this);
- KShortcutsEditor widget(this);
-
- widget.addCollection(actionCollection(), i18n("web window"));
+ dialog->addCollection(actionCollection(), i18n("web window"));
TabWindow *tw = rApp->tabWindow();
if (tw)
{
- widget.addCollection(tw->actionCollection(), i18n("tab window"));
- }
-
- dialog->setMainWidget(&widget);
-
- dialog->setCaption(i18nc("@title:window", "Configure Shortcuts"));
- dialog->setButtons(KDialog::Ok | KDialog::Cancel | KDialog::Reset);
- dialog->setMinimumSize(700, 525);
-
- connect(dialog, SIGNAL(resetClicked()), &widget, SLOT(allDefault()));
-
- if (dialog->exec() == QDialog::Accepted)
- {
- kDebug() << "OK";
- widget.save();
+ dialog->addCollection(tw->actionCollection(), i18n("tab window"));
}
+ dialog->configure();
dialog->deleteLater();
}