1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-18 20:40:43 +01:00

Both cases move the clear button to the same position

This commit is contained in:
Andrew Udvare 2014-01-11 12:56:39 -08:00
parent a11270f749
commit 773258af99

View File

@ -128,11 +128,11 @@ void ExtendedEditor::Resize() {
const int frame_width = widget_->style()->pixelMetric(QStyle::PM_DefaultFrameWidth); const int frame_width = widget_->style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
const int y = (widget_->rect().height() - sz.height()) / 2; const int y = (widget_->rect().height() - sz.height()) / 2;
clear_button_->move(frame_width, y);
if (!is_rtl_) { if (!is_rtl_) {
clear_button_->move(frame_width, y);
reset_button_->move(widget_->width() - frame_width - sz.width() - extra_right_padding_, y); reset_button_->move(widget_->width() - frame_width - sz.width() - extra_right_padding_, y);
} else { } else {
clear_button_->move(frame_width, y);
reset_button_->move((has_clear_button() ? sz.width() + 4 : 0) + frame_width, y); reset_button_->move((has_clear_button() ? sz.width() + 4 : 0) + frame_width, y);
} }
} }