diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-11-23 13:18:37 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-11-24 05:17:28 +0000 |
commit | b99677dea95a8886429574713d5a78dde9181959 (patch) | |
tree | 1562708b567cd9ddabd1254e9dc9a485e3820128 /ui/qt/address_editor_frame.h | |
parent | 73c01d6d0562f138b3aad83b6b2dcf8d3f09dcee (diff) |
Qt: Add key event to reject changes in AddressEditorFrame
Also give focus to the name field.
Change-Id: I409d48e513c04b510f1e3d838c05e1518e6d2e9d
Reviewed-on: https://code.wireshark.org/review/24547
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/address_editor_frame.h')
-rw-r--r-- | ui/qt/address_editor_frame.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/qt/address_editor_frame.h b/ui/qt/address_editor_frame.h index eb57263c79..91a8935a50 100644 --- a/ui/qt/address_editor_frame.h +++ b/ui/qt/address_editor_frame.h @@ -48,12 +48,15 @@ signals: void editAddressStatus(const QString &status); void redissectPackets(); +protected: + virtual void showEvent(QShowEvent *event); + virtual void keyPressEvent(QKeyEvent *event); + private slots: void updateWidgets(); void on_nameResolutionPreferencesToolButton_clicked(); void on_addressComboBox_currentIndexChanged(const QString &); void on_nameLineEdit_textEdited(const QString &); - void on_nameLineEdit_returnPressed(); void on_buttonBox_accepted(); void on_buttonBox_rejected(); |