Oops
This commit is contained in:
parent
5c05745985
commit
b716f802f3
|
@ -98,6 +98,13 @@ void ExtendedEditor::UpdateButtonGeometry() {
|
||||||
widget_->setMinimumSize(width, height);
|
widget_->setMinimumSize(width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ExtendedEditor::set_rtl(bool rtl) {
|
||||||
|
if (rtl != is_rtl_) {
|
||||||
|
is_rtl_ = rtl;
|
||||||
|
UpdateButtonGeometry();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void ExtendedEditor::Paint(QPaintDevice* device) {
|
void ExtendedEditor::Paint(QPaintDevice* device) {
|
||||||
if (!widget_->hasFocus() && is_empty() && !hint_.isEmpty()) {
|
if (!widget_->hasFocus() && is_empty() && !hint_.isEmpty()) {
|
||||||
clear_button_->hide();
|
clear_button_->hide();
|
||||||
|
@ -143,13 +150,6 @@ LineEdit::LineEdit(QWidget* parent)
|
||||||
connect(this, SIGNAL(textChanged(QString)), SLOT(text_changed(QString)));
|
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) {
|
void LineEdit::text_changed(const QString& text) {
|
||||||
if (text.isEmpty()) {
|
if (text.isEmpty()) {
|
||||||
// Consider empty string as LTR
|
// Consider empty string as LTR
|
||||||
|
|
Loading…
Reference in New Issue