mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Revert "Oops"
This reverts commit b716f802f3a2d27610af4d29a60292efa1fcbf95.
This commit is contained in:
parent
bf35df140a
commit
b2f16b316e
@ -98,13 +98,6 @@ void ExtendedEditor::UpdateButtonGeometry() {
|
||||
widget_->setMinimumSize(width, height);
|
||||
}
|
||||
|
||||
void ExtendedEditor::set_rtl(bool rtl) {
|
||||
if (rtl != is_rtl_) {
|
||||
is_rtl_ = rtl;
|
||||
UpdateButtonGeometry();
|
||||
}
|
||||
}
|
||||
|
||||
void ExtendedEditor::Paint(QPaintDevice* device) {
|
||||
if (!widget_->hasFocus() && is_empty() && !hint_.isEmpty()) {
|
||||
clear_button_->hide();
|
||||
@ -150,6 +143,13 @@ LineEdit::LineEdit(QWidget* parent)
|
||||
connect(this, SIGNAL(textChanged(QString)), SLOT(text_changed(QString)));
|
||||
}
|
||||
|
||||
void LineEdit::set_rtl(bool rtl) {
|
||||
if (rtl != is_rtl_) {
|
||||
is_rtl_ = rtl;
|
||||
UpdateButtonGeometry();
|
||||
}
|
||||
}
|
||||
|
||||
void LineEdit::text_changed(const QString& text) {
|
||||
if (text.isEmpty()) {
|
||||
// Consider empty string as LTR
|
||||
|
Loading…
x
Reference in New Issue
Block a user