possibility to put the focus over the frame

fixes the wrong shading of the lineedits, but staying retrocompatible with the old themes designed to have an highlight outside
This commit is contained in:
Marco Martin 2011-11-07 23:02:25 +01:00
parent f38425761a
commit 4fad696891

View File

@ -64,7 +64,10 @@ LineEdit::LineEdit(QGraphicsWidget *parent)
d->background->setImagePath("widgets/lineedit");
d->background->setCacheAllRenderedFrames(true);
new FocusIndicator(this, d->background);
FocusIndicator *indicator = new FocusIndicator(this, d->background);
if (d->background->hasElement("hint-focus-over-base")) {
indicator->setFlag(QGraphicsItem::ItemStacksBehindParent, false);
}
setNativeWidget(new KLineEdit);
}