From 8cd95e4ae73c17d2f3d9c498e63698778150bcfd Mon Sep 17 00:00:00 2001 From: Davide Bettio Date: Sun, 27 Apr 2008 11:13:43 +0000 Subject: [PATCH] API REVIEW: updated containment to the new API (constraintsUpdated() -> constraintsEvent() + protected) CCMAIL: aseigo@kde.org svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801659 --- applet.cpp | 2 +- containment.cpp | 4 ++-- containment_p.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/applet.cpp b/applet.cpp index ecb4aefa9..0db8b6dee 100644 --- a/applet.cpp +++ b/applet.cpp @@ -969,7 +969,7 @@ void Applet::flushPendingConstraintsEvents() Containment* containment = qobject_cast(this); if (actAsContainment() && containment) { - containment->d->containmentConstraintsUpdated(c); + containment->d->containmentConstraintsEvent(c); } constraintsEvent(c); diff --git a/containment.cpp b/containment.cpp index 43943abca..101fd01e3 100644 --- a/containment.cpp +++ b/containment.cpp @@ -968,13 +968,13 @@ void Containment::Private::setLockToolText() } } -void Containment::Private::containmentConstraintsUpdated(Plasma::Constraints constraints) +void Containment::Private::containmentConstraintsEvent(Plasma::Constraints constraints) { if (!q->actAsContainment()) { return; } - //kDebug() << "got containmentConstraintsUpdated" << constraints << (QObject*)toolBox; + //kDebug() << "got containmentConstraintsEvent" << constraints << (QObject*)toolBox; if (constraints & Plasma::ImmutableConstraint) { setLockToolText(); diff --git a/containment_p.h b/containment_p.h index 55257ed9c..b679f6090 100644 --- a/containment_p.h +++ b/containment_p.h @@ -57,9 +57,9 @@ public: /** * Called when constraints have been updated on this containment to provide * constraint services common to all containments. Containments should still - * implement their own constraintsUpdated method + * implement their own constraintsEvent method */ - void containmentConstraintsUpdated(Plasma::Constraints constraints); + void containmentConstraintsEvent(Plasma::Constraints constraints); bool regionIsEmpty(const QRectF ®ion, Applet *ignoredApplet=0) const; void positionPanel(bool force = false);