set the flag in the proper place

svn path=/trunk/KDE/kdelibs/; revision=1123756
This commit is contained in:
Marco Martin 2010-05-06 20:48:10 +00:00
parent b917c7d14d
commit cbabd3b5cf

View File

@ -82,10 +82,7 @@ LineEdit::LineEdit(QGraphicsWidget *parent)
FocusIndicator *focusIndicator = new FocusIndicator(this, "widgets/lineedit");
KLineEdit *native = new KLineEdit;
native->setWindowFlags(native->windowFlags()|Qt::BypassGraphicsProxyWidget);
setNativeWidget(native);
setNativeWidget(new KLineEdit);
connect(Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(setPalette()));
}
@ -138,6 +135,7 @@ void LineEdit::setNativeWidget(KLineEdit *nativeWidget)
connect(nativeWidget, SIGNAL(textChanged(const QString&)), this, SIGNAL(textChanged(const QString&)));
nativeWidget->setWindowFlags(nativeWidget->windowFlags()|Qt::BypassGraphicsProxyWidget);
setWidget(nativeWidget);
nativeWidget->setAttribute(Qt::WA_NoSystemBackground);