don't have borders or background by default

svn path=/trunk/KDE/kdelibs/; revision=933789
This commit is contained in:
Marco Martin 2009-03-01 16:01:20 +00:00
parent d0205d92b3
commit a0194765cb

View File

@ -46,6 +46,9 @@ TextEdit::TextEdit(QGraphicsWidget *parent)
connect(native, SIGNAL(textChanged()), this, SIGNAL(textChanged()));
setWidget(native);
native->setAttribute(Qt::WA_NoSystemBackground);
native->setFrameShape( QFrame::NoFrame );
native->setTextBackgroundColor( Qt::transparent );
native->viewport()->setAutoFillBackground( false );
d->style = Plasma::Style::sharedStyle();
native->verticalScrollBar()->setStyle(d->style.data());
native->horizontalScrollBar()->setStyle(d->style.data());