forked from qt-creator/qt-creator
QmlDesigner: Fix navigator search widget design
Change-Id: I425bbf715164ee41fc4d9bca37c25f09f9093871
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
(cherry picked from commit 8ed634fde1
)
This commit is contained in:
committed by
Thomas Hartmann
parent
3f0f2e7021
commit
c2811f8318
@@ -53,8 +53,22 @@ LineEdit::LineEdit(QWidget *parent)
|
|||||||
connect(this, &QLineEdit::textChanged, this, &LineEdit::updateClearButton);
|
connect(this, &QLineEdit::textChanged, this, &LineEdit::updateClearButton);
|
||||||
|
|
||||||
int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
|
int frameWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth);
|
||||||
setStyleSheet(Theme::replaceCssColors(QString("QLineEdit { padding-right: %1px; }")
|
setStyleSheet(Theme::replaceCssColors(
|
||||||
|
QString("QLineEdit { padding-right: %1px; border-radius: 4;"
|
||||||
|
"color: creatorTheme.DStextColor;"
|
||||||
|
"border-color: creatorTheme.DScontrolOutline_topToolbarIdle;"
|
||||||
|
"background: creatorTheme.DStoolbarBackground; }"
|
||||||
|
"QLineEdit:hover {"
|
||||||
|
"color: creatorTheme.DStextColor;"
|
||||||
|
"border-color: creatorTheme.DScontrolOutline_topToolbarHover;"
|
||||||
|
"background: creatorTheme.DScontrolBackground_toolbarHover; }"
|
||||||
|
"QLineEdit:focus {"
|
||||||
|
"color: creatorTheme.DStextColor;"
|
||||||
|
"border-color: creatorTheme.DSinteraction;"
|
||||||
|
"background: creatorTheme.DStoolbarBackground; }")
|
||||||
.arg(clearButton->sizeHint().width() + frameWidth + 8)));
|
.arg(clearButton->sizeHint().width() + frameWidth + 8)));
|
||||||
|
|
||||||
|
setFixedHeight(29);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LineEdit::resizeEvent(QResizeEvent *)
|
void LineEdit::resizeEvent(QResizeEvent *)
|
||||||
|
Reference in New Issue
Block a user