share the FrameSvg with the focus indicator

svn path=/trunk/KDE/kdelibs/; revision=1178172
This commit is contained in:
Aaron J. Seigo 2010-09-22 09:03:41 +00:00
parent dc9d3f5e50
commit 938880140b
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ ComboBox::ComboBox(QGraphicsWidget *parent)
d->style = Style::sharedStyle();
new FocusIndicator(this, "widgets/button");
new FocusIndicator(this, d->background);
setNativeWidget(new KComboBox);
connect(d->background, SIGNAL(repaintNeeded()), SLOT(syncBorders()));
}

View File

@ -81,7 +81,7 @@ LineEdit::LineEdit(QGraphicsWidget *parent)
d->background->setImagePath("widgets/lineedit");
d->background->setCacheAllRenderedFrames(true);
new FocusIndicator(this, "widgets/lineedit");
new FocusIndicator(this, d->background);
setNativeWidget(new KLineEdit);
connect(Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(setPalette()));
}