diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-08-16 20:10:02 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2021-08-16 20:10:02 +0000 |
| commit | 7ef9826e146a9adc31028f0ccc40e8b6b992e17c (patch) | |
| tree | 642e89a2aedb4542c94c0115d08a2bd0637e6f92 /src/plugins/Ui/skinned/shortcutdialog.cpp | |
| parent | d1ce1c6184ed1b08049fe5c5e25320487e3402f3 (diff) | |
| download | qmmp-7ef9826e146a9adc31028f0ccc40e8b6b992e17c.tar.gz qmmp-7ef9826e146a9adc31028f0ccc40e8b6b992e17c.tar.bz2 qmmp-7ef9826e146a9adc31028f0ccc40e8b6b992e17c.zip | |
refactoring
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@10216 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/shortcutdialog.cpp')
| -rw-r--r-- | src/plugins/Ui/skinned/shortcutdialog.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/Ui/skinned/shortcutdialog.cpp b/src/plugins/Ui/skinned/shortcutdialog.cpp index 83243c220..6b22294e7 100644 --- a/src/plugins/Ui/skinned/shortcutdialog.cpp +++ b/src/plugins/Ui/skinned/shortcutdialog.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2010-2013 by Ilya Kotov * + * Copyright (C) 2010-2021 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -38,8 +38,7 @@ ShortcutDialog::~ShortcutDialog() void ShortcutDialog::keyPressEvent (QKeyEvent *event) { - int key = event->key(); - switch (key) + switch(event->key()) { case Qt::Key_Shift: case Qt::Key_Control: @@ -51,7 +50,6 @@ void ShortcutDialog::keyPressEvent (QKeyEvent *event) case Qt::Key_Menu: case 0: case Qt::Key_unknown: - key = 0; m_ui.keyLineEdit->clear(); QWidget::keyPressEvent(event); return; |
