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:
parent
f38425761a
commit
4fad696891
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user