Set the height of the resize and apply buttons. Simplify some geometry.

svn path=/trunk/; revision=46453
This commit is contained in:
Gerald Combs 2012-12-07 21:32:19 +00:00
parent 43f3eb63dc
commit 0b2e3dbd10
1 changed files with 4 additions and 2 deletions

View File

@ -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());
}