From 20f4e402d8e10f24747bd6e9135020b4b2ce6ddc Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 19 Jan 2009 16:04:03 +0000 Subject: [PATCH] Backport 913616 svn path=/branches/KDE/4.2/kdelibs/; revision=913618 --- extenderitem.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/extenderitem.cpp b/extenderitem.cpp index 94db3aa55..d57a1ebcc 100644 --- a/extenderitem.cpp +++ b/extenderitem.cpp @@ -95,6 +95,12 @@ ExtenderItem::ExtenderItem(Extender *hostExtender, uint extenderItemId) d->extenderItemId = ++ExtenderItemPrivate::s_maxExtenderItemId; } + //create the toolbox. + d->toolbox = new QGraphicsWidget(this); + d->toolboxLayout = new QGraphicsLinearLayout(d->toolbox); + d->toolbox->setLayout(d->toolboxLayout); + + //create items's configgroup KConfigGroup cg = hostExtender->d->applet->config("ExtenderItems"); KConfigGroup dg = KConfigGroup(&cg, QString::number(d->extenderItemId)); @@ -136,11 +142,6 @@ ExtenderItem::ExtenderItem(Extender *hostExtender, uint extenderItemId) connect(d->sourceApplet, SIGNAL(destroyed()), this, SLOT(sourceAppletRemoved())); connect(d->collapseIcon, SIGNAL(clicked()), this, SLOT(toggleCollapse())); - //create the toolbox. - d->toolbox = new QGraphicsWidget(this); - d->toolboxLayout = new QGraphicsLinearLayout(d->toolbox); - d->toolbox->setLayout(d->toolboxLayout); - //set the extender we want to move to. setExtender(hostExtender);