aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/display_filter_edit.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-12-07 21:32:19 +0000
committerGerald Combs <gerald@wireshark.org>2012-12-07 21:32:19 +0000
commit0b2e3dbd106ac790b835083832d9e828b4a97637 (patch)
tree868275b862700e4ecb8fb9f7d2962fd9ea33642e /ui/qt/display_filter_edit.cpp
parent43f3eb63dc7a1ba0594f7294ee1a14284fe25975 (diff)
Set the height of the resize and apply buttons. Simplify some geometry.
svn path=/trunk/; revision=46453
Diffstat (limited to 'ui/qt/display_filter_edit.cpp')
-rw-r--r--ui/qt/display_filter_edit.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/qt/display_filter_edit.cpp b/ui/qt/display_filter_edit.cpp
index 0bec245c1e..0763598845 100644
--- a/ui/qt/display_filter_edit.cpp
+++ b/ui/qt/display_filter_edit.cpp
@@ -237,10 +237,12 @@ void DisplayFilterEdit::resizeEvent(QResizeEvent *)
}
int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
clear_button_->move(contentsRect().right() - frameWidth - cbsz.width() - apsz.width(),
- (contentsRect().bottom() + 1 - cbsz.height())/2);
+ contentsRect().top());
+ clear_button_->setMaximumHeight(contentsRect().height());
if (apply_button_) {
apply_button_->move(contentsRect().right() - frameWidth - apsz.width(),
- (contentsRect().bottom() + 1 - apsz.height())/2);
+ contentsRect().top());
+ apply_button_->setMaximumHeight(contentsRect().height());
}
bookmark_button_->setMaximumHeight(contentsRect().height());
}