add a way for Containments to get notified that startup is indeed complete
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758066
This commit is contained in:
parent
fe9464124c
commit
da34471e13
@ -236,7 +236,7 @@ void Corona::loadApplets(const QString& configName)
|
||||
}
|
||||
|
||||
Applet *applet = c->addApplet(plugin, QVariantList(), appId, appletConfig.readEntry("geometry", QRectF()), true);
|
||||
|
||||
|
||||
QList<qreal> m = appletConfig.readEntry("transform", QList<qreal>());
|
||||
if (m.count() == 9) {
|
||||
QTransform t(m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8]);
|
||||
@ -257,6 +257,7 @@ void Corona::loadApplets(const QString& configName)
|
||||
applet->init();
|
||||
}
|
||||
|
||||
containment->updateConstraints(Plasma::StartupCompletedConstraint);
|
||||
containment->flushUpdatedConstraints();
|
||||
}
|
||||
|
||||
@ -406,6 +407,7 @@ Containment* Corona::addContainment(const QString& name, const QVariantList& arg
|
||||
if (!delayedInit) {
|
||||
addItem(containment);
|
||||
containment->init();
|
||||
containment->updateConstraints(Plasma::StartupCompletedConstraint);
|
||||
}
|
||||
|
||||
d->containments.append(containment);
|
||||
|
1
plasma.h
1
plasma.h
@ -42,6 +42,7 @@ enum Constraint { NoConstraint = 0,
|
||||
ScreenConstraint = 4 /** Which screen an object is on */,
|
||||
SizeConstraint = 8 /** the size of the applet was changed */,
|
||||
ImmutableConstraint = 16 /** the immutability (locked) nature of the applet changed */,
|
||||
StartupCompletedConstraint = 32 /** application startup has completed */,
|
||||
AllConstraints = FormFactorConstraint | LocationConstraint | ScreenConstraint | SizeConstraint | ImmutableConstraint
|
||||
};
|
||||
Q_DECLARE_FLAGS(Constraints, Constraint)
|
||||
|
Loading…
x
Reference in New Issue
Block a user