From 8d02c15ea5cc5608363e819d9f3c0dd3c2a6acc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dutkiewicz?= Date: Thu, 24 Oct 2013 19:29:27 +0200 Subject: [PATCH] Cleanup --- src/ShortcutEditorWidget.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ShortcutEditorWidget.cpp b/src/ShortcutEditorWidget.cpp index 7540f22..9a3579f 100644 --- a/src/ShortcutEditorWidget.cpp +++ b/src/ShortcutEditorWidget.cpp @@ -23,14 +23,12 @@ ShortcutEditorWidget::ShortcutEditorWidget(const QString &action, const QString m_clearButton->setToolTip(tr("Clear")); m_clearButton->setIcon(QIcon(":/icons/edit-clear-locationbar-rtl.png")); - m_clearButton->setCheckable(false); - m_clearButton->setEnabled(!shortcut.isEmpty()); m_restoreButton->setToolTip(tr("Restore Default")); m_restoreButton->setIcon(QIcon(":/icons/edit-undo.png")); + shortcutChanged(); setLayout(layout); - setFocusPolicy(Qt::StrongFocus); connect(m_sequenceEdit, SIGNAL(keySequenceChanged(QKeySequence)), this, SLOT(shortcutChanged()));