From b00807cee8ace0a790d23b257bd0392ad9c2ada9 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sun, 27 Apr 2008 20:35:23 +0000 Subject: [PATCH] * containments should never have the applet background by default * always call updateConstraints, not constraintsEvent directly to avoid unecessary multiple calls svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801817 --- containment.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/containment.cpp b/containment.cpp index 55b430b85..320fc407a 100644 --- a/containment.cpp +++ b/containment.cpp @@ -80,7 +80,7 @@ Containment::Containment(QGraphicsItem* parent, // WARNING: do not access config() OR globalConfig() in this method! // that requires a scene, which is not available at this point setPos(0, 0); - setBackgroundHints(DefaultBackground); + setBackgroundHints(NoBackground); setContainmentType(CustomContainment); } @@ -217,7 +217,6 @@ void Containment::setContainmentType(Containment::Type type) QGraphicsWidget *activityTool = addToolBoxTool("addSiblingContainment", "list-add", i18n("Add Activity")); connect(activityTool, SIGNAL(clicked()), this, SLOT(addSiblingContainment())); } - } else if (isContainment() && type == PanelContainment) { if (!d->toolBox) { d->createToolBox(); @@ -980,7 +979,7 @@ void Containment::Private::containmentConstraintsEvent(Plasma::Constraints const // tell the applets too foreach (Applet *a, applets) { - a->constraintsEvent(ImmutableConstraint); + a->updateConstraints(ImmutableConstraint); } }