From 61f73a3262fe724b7b31f14e842a80c5121301dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 18 Feb 2016 20:48:23 +0100 Subject: Qt: Update AccordionFrame widgets to use common layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use QPushButton for buttons and set the "Find" button as default in SearchFrame. - Use QPushButton for buttons, added a "Packet:" label, and set the "Go to packet" button as default in GoToFrame. - Set Qt::WA_MacSmallSize in OS X for FilterExpressionFrame and PreferenceEditorFrame. - Removed QFrame::StyledPanel and QFrame::Raised from ColumnEditorFrame. - Update ui files to reflect that AccordionFrame is used for AddressEditorFrame, FilterExpressionFrame and PreferenceEditorFrame. Change-Id: Icfbfff973535317997109a1020dfe24ba932e098 Reviewed-on: https://code.wireshark.org/review/13995 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke --- ui/qt/filter_expression_frame.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui/qt/filter_expression_frame.cpp') diff --git a/ui/qt/filter_expression_frame.cpp b/ui/qt/filter_expression_frame.cpp index c876a85c66..b94e9d2ffd 100644 --- a/ui/qt/filter_expression_frame.cpp +++ b/ui/qt/filter_expression_frame.cpp @@ -35,6 +35,12 @@ FilterExpressionFrame::FilterExpressionFrame(QWidget *parent) : ui(new Ui::FilterExpressionFrame) { ui->setupUi(this); + +#ifdef Q_OS_MAC + foreach (QWidget *w, findChildren()) { + w->setAttribute(Qt::WA_MacSmallSize, true); + } +#endif } FilterExpressionFrame::~FilterExpressionFrame() -- cgit v1.2.1