![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <shortcuts.h>
Inheritance diagram for shortcut_edit:
Collaboration diagram for shortcut_edit:Public Member Functions | |
| shortcut_edit (const fc_shortcut &sc) | |
| Constructs a shortcut edit widget. More... | |
| fc_shortcut | shortcut () const |
| Retrieves the shortcut entered by the user. More... | |
| void | set_shortcut (const fc_shortcut &shortcut) |
| Changes the shortcut displayed by the widget. More... | |
Protected Member Functions | |
| bool | event (QEvent *event) override |
| Reimplemented from QObject. More... | |
| bool | eventFilter (QObject *watched, QEvent *event) override |
| Mouse press event for shortcut edit widget. More... | |
Private Attributes | |
| QLineEdit * | m_line |
| fc_shortcut | m_shortcut |
| bool | m_ignore_next_mouse_event = false |
Definition at line 169 of file shortcuts.h.
| shortcut_edit::shortcut_edit | ( | const fc_shortcut & | sc | ) |
Constructs a shortcut edit widget.
Definition at line 396 of file shortcuts.cpp.
|
overrideprotected |
Reimplemented from QObject.
Definition at line 449 of file shortcuts.cpp.
Referenced by eventFilter().
|
overrideprotected |
Mouse press event for shortcut edit widget.
Definition at line 464 of file shortcuts.cpp.
| void shortcut_edit::set_shortcut | ( | const fc_shortcut & | shortcut | ) |
Changes the shortcut displayed by the widget.
Definition at line 433 of file shortcuts.cpp.
| fc_shortcut shortcut_edit::shortcut | ( | ) | const |
Retrieves the shortcut entered by the user.
Definition at line 418 of file shortcuts.cpp.
Referenced by set_shortcut().
|
private |
Definition at line 184 of file shortcuts.h.
Referenced by event(), and eventFilter().
|
private |
Definition at line 182 of file shortcuts.h.
Referenced by eventFilter(), set_shortcut(), and shortcut_edit().
|
private |
Definition at line 183 of file shortcuts.h.
Referenced by eventFilter(), set_shortcut(), shortcut(), and shortcut_edit().