summaryrefslogtreecommitdiff
path: root/ui/qt/filter_expression_frame.cpp
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2016-02-18 20:48:23 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2016-02-19 12:16:16 +0000
commit61f73a3262fe724b7b31f14e842a80c5121301dd (patch)
treec1e0ac7f8c52b76392e5c329c408e17a1c72c849 /ui/qt/filter_expression_frame.cpp
parent4c1869f4871211b3c7518e4858b8372c27013acc (diff)
downloadwireshark-61f73a3262fe724b7b31f14e842a80c5121301dd.tar.gz
Qt: Update AccordionFrame widgets to use common layout
- 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 <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'ui/qt/filter_expression_frame.cpp')
-rw-r--r--ui/qt/filter_expression_frame.cpp6
1 files changed, 6 insertions, 0 deletions
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<QWidget *>()) {
+ w->setAttribute(Qt::WA_MacSmallSize, true);
+ }
+#endif
}
FilterExpressionFrame::~FilterExpressionFrame()