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
This commit is contained in:
Davide Bettio 2008-04-27 11:13:43 +00:00
parent ff16201431
commit 8cd95e4ae7
3 changed files with 5 additions and 5 deletions

View File

@ -969,7 +969,7 @@ void Applet::flushPendingConstraintsEvents()
Containment* containment = qobject_cast<Plasma::Containment*>(this);
if (actAsContainment() && containment) {
containment->d->containmentConstraintsUpdated(c);
containment->d->containmentConstraintsEvent(c);
}
constraintsEvent(c);

View File

@ -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();

View File

@ -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 &region, Applet *ignoredApplet=0) const;
void positionPanel(bool force = false);