summaryrefslogtreecommitdiff
path: root/ui/qt/address_editor_frame.h
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2015-12-01 15:41:44 +0100
committerGerald Combs <gerald@wireshark.org>2015-12-01 23:33:57 +0000
commitb932ee8f136ffeb3e78ce0f03e08df81fd18d9d4 (patch)
tree2826b2e104b2894ae3a47c840cc1f3efce2d5420 /ui/qt/address_editor_frame.h
parent96bf82ced0b58c7a4c2a6c300efeebe4f05c0ff4 (diff)
downloadwireshark-b932ee8f136ffeb3e78ce0f03e08df81fd18d9d4.tar.gz
Qt Frames: Use ButtonBox instead of buttons
In these frames the Ok and Close buttons are implemented as standalone buttons. This leads to the scenario, that they break plattform-ui preferences on the one hand, as well as not being the same order throughout. This patch replaces all Ok/Close buttons with the Qt button box, which handles the plattform-ui internally, and additionally allways enforces the same order. Change-Id: If62b90016b222322f60c0962da04c8277589a57f Reviewed-on: https://code.wireshark.org/review/12335 Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/address_editor_frame.h')
-rw-r--r--ui/qt/address_editor_frame.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/address_editor_frame.h b/ui/qt/address_editor_frame.h
index 92b3463e4c..0bec30b4b9 100644
--- a/ui/qt/address_editor_frame.h
+++ b/ui/qt/address_editor_frame.h
@@ -54,8 +54,8 @@ private slots:
void on_addressComboBox_currentIndexChanged(const QString &);
void on_nameLineEdit_textEdited(const QString &);
void on_nameLineEdit_returnPressed();
- void on_okButton_clicked();
- void on_cancelButton_clicked();
+ void on_buttonBox_accepted();
+ void on_buttonBox_rejected();
private:
Ui::AddressEditorFrame *ui;