From 56eda6927e7dc1815b8f2c4e6296c0215b9baea0 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Tue, 4 Mar 2008 20:24:42 +0000 Subject: [PATCH] LocationConstraint isn't about pos(), but Plasma::Location svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=782307 --- applet.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/applet.cpp b/applet.cpp index 3e7ca3f4d..b0176088f 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1481,7 +1481,6 @@ QVariant Applet::itemChange(GraphicsItemChange change, const QVariant &value) void Applet::setGeometry(const QRectF& geometry) { - Plasma::Constraints updatedConstraints(0); QSizeF s = size(); QPointF p = pos(); @@ -1493,15 +1492,9 @@ void Applet::setGeometry(const QRectF& geometry) d->background->resize(size()); } - updatedConstraints |= Plasma::SizeConstraint; - } - - if (p != pos()) { - updatedConstraints |= Plasma::LocationConstraint; - } - - if (updatedConstraints) { - updateConstraints(updatedConstraints); + updateConstraints(Plasma::SizeConstraint); + emit geometryChanged(); + } else if (p != pos()) { emit geometryChanged(); } }