reverting the last change, the panel height is still the old one at that

point :)

CCBUG:176280

svn path=/trunk/KDE/kdelibs/; revision=927158
This commit is contained in:
Marco Martin 2009-02-16 22:11:24 +00:00
parent 59a0e9f0e8
commit f4514950f4

@ -1177,13 +1177,8 @@ QVariant Containment::itemChange(GraphicsItemChange change, const QVariant &valu
{ {
//FIXME if the applet is moved to another containment we need to unfocus it //FIXME if the applet is moved to another containment we need to unfocus it
QVariant newValue = Applet::itemChange(change, value);
if (isContainment() && !ContainmentPrivate::s_positioning && if (isContainment() && !ContainmentPrivate::s_positioning &&
(change == QGraphicsItem::ItemSceneChange || change == QGraphicsItem::ItemPositionChange)) { (change == QGraphicsItem::ItemSceneHasChanged || change == QGraphicsItem::ItemPositionHasChanged)) {
//if the position will be actually changed, reposition before the change
if (newValue == value) {
switch (d->type) { switch (d->type) {
case PanelContainment: case PanelContainment:
case CustomPanelContainment: case CustomPanelContainment:
@ -1194,9 +1189,8 @@ QVariant Containment::itemChange(GraphicsItemChange change, const QVariant &valu
break; break;
} }
} }
}
return newValue; return Applet::itemChange(change, value);
} }
void Containment::enableAction(const QString &name, bool enable) void Containment::enableAction(const QString &name, bool enable)