neither the scrollwidget nor its scrollingwidget child paints by themselves

svn path=/trunk/KDE/kdelibs/; revision=1158783
This commit is contained in:
Marco Martin 2010-08-03 18:43:07 +00:00
parent 30bfeef1af
commit b968f22439

View File

@ -108,12 +108,14 @@ public:
void commonConstructor()
{
q->setFlag(QGraphicsItem::ItemHasNoContents);
q->setFocusPolicy(Qt::StrongFocus);
q->setFiltersChildEvents(true);
layout = new QGraphicsGridLayout(q);
q->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
layout->setContentsMargins(1, 1, 1, 1);
scrollingWidget = new QGraphicsWidget(q);
scrollingWidget->setFlag(QGraphicsItem::ItemHasNoContents);
scrollingWidget->installEventFilter(q);
layout->addItem(scrollingWidget, 0, 0);
borderSvg = new Plasma::Svg(q);