forked from qt-creator/qt-creator
Fixes: Fix incorrectly streched border image for line edits
Task: QTCREATORBUG-326 Details: The image simply needs bigger margins to avoid the shadow beeing streched too far.
This commit is contained in:
@@ -481,9 +481,9 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
|
|||||||
painter->fillRect(filledRect, option->palette.base());
|
painter->fillRect(filledRect, option->palette.base());
|
||||||
|
|
||||||
if (option->state & State_Enabled)
|
if (option->state & State_Enabled)
|
||||||
drawCornerImage(d->lineeditImage, painter, option->rect, 2, 2, 2, 2);
|
drawCornerImage(d->lineeditImage, painter, option->rect, 5, 5, 5, 5);
|
||||||
else
|
else
|
||||||
drawCornerImage(d->lineeditImage_disabled, painter, option->rect, 2, 2, 2, 2);
|
drawCornerImage(d->lineeditImage_disabled, painter, option->rect, 5, 5, 5, 5);
|
||||||
|
|
||||||
if (option->state & State_HasFocus || option->state & State_MouseOver) {
|
if (option->state & State_HasFocus || option->state & State_MouseOver) {
|
||||||
QColor hover = Utils::StyleHelper::baseColor();
|
QColor hover = Utils::StyleHelper::baseColor();
|
||||||
|
|||||||
Reference in New Issue
Block a user