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:
Jens Bache-Wiig
2009-11-20 13:50:40 +01:00
parent ea40dfbf7e
commit a4d5bdee61

View File

@@ -481,9 +481,9 @@ void ManhattanStyle::drawPrimitive(PrimitiveElement element, const QStyleOption
painter->fillRect(filledRect, option->palette.base());
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
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) {
QColor hover = Utils::StyleHelper::baseColor();