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:
parent
ff16201431
commit
8cd95e4ae7
@ -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);
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user