diff --git a/widgets/textbrowser.cpp b/widgets/textbrowser.cpp index b49822a02..a7c2d9d7e 100644 --- a/widgets/textbrowser.cpp +++ b/widgets/textbrowser.cpp @@ -105,6 +105,7 @@ TextBrowser::TextBrowser(QGraphicsWidget *parent) native->setWindowFlags(native->windowFlags()|Qt::BypassGraphicsProxyWidget); connect(native, SIGNAL(textChanged()), this, SIGNAL(textChanged())); connect(native, SIGNAL(textChanged()), this, SLOT(setFixedHeight())); + native->setWindowIcon(QIcon()); setWidget(native); d->native = native; native->setAttribute(Qt::WA_NoSystemBackground); diff --git a/widgets/textedit.cpp b/widgets/textedit.cpp index bd23fb72d..4c2e701da 100644 --- a/widgets/textedit.cpp +++ b/widgets/textedit.cpp @@ -129,8 +129,8 @@ void TextEdit::setNativeWidget(KTextEdit *nativeWidget) connect(nativeWidget, SIGNAL(textChanged()), this, SIGNAL(textChanged())); - setWidget(nativeWidget); nativeWidget->setWindowIcon(QIcon()); + setWidget(nativeWidget); nativeWidget->setAttribute(Qt::WA_NoSystemBackground); nativeWidget->setFrameShape(QFrame::NoFrame);