Set flag in setNativeWidget() so it will be set also when using custom widgets
svn path=/trunk/KDE/kdelibs/; revision=1067584
This commit is contained in:
parent
cd884edd21
commit
4def4009c6
@ -77,9 +77,7 @@ TextEdit::TextEdit(QGraphicsWidget *parent)
|
||||
{
|
||||
d->style = Plasma::Style::sharedStyle();
|
||||
|
||||
KTextEdit *nativeWidget = new KTextEdit;
|
||||
nativeWidget->setWindowFlags(nativeWidget->windowFlags()|Qt::BypassGraphicsProxyWidget);
|
||||
setNativeWidget(nativeWidget);
|
||||
setNativeWidget(new KTextEdit);
|
||||
connect(Theme::defaultTheme(), SIGNAL(themeChanged()),
|
||||
this, SLOT(setPalette()));
|
||||
}
|
||||
@ -126,6 +124,8 @@ void TextEdit::setNativeWidget(KTextEdit *nativeWidget)
|
||||
widget()->deleteLater();
|
||||
}
|
||||
|
||||
nativeWidget->setWindowFlags(nativeWidget->windowFlags()|Qt::BypassGraphicsProxyWidget);
|
||||
|
||||
connect(nativeWidget, SIGNAL(textChanged()), this, SIGNAL(textChanged()));
|
||||
|
||||
setWidget(nativeWidget);
|
||||
|
Loading…
x
Reference in New Issue
Block a user