fix containment margins

signal availableScreenRegionChanged() too
This commit is contained in:
Marco Martin 2011-10-01 15:14:00 +02:00
parent 136ea88ec4
commit 84de302083
2 changed files with 6 additions and 0 deletions

View File

@ -470,6 +470,11 @@ ContainmentInterface::ContainmentInterface(AbstractJsAppletScript *parent)
connect(containment()->context(), SIGNAL(activityChanged(Plasma::Context *)), this, SIGNAL(activityNameChanged())); connect(containment()->context(), SIGNAL(activityChanged(Plasma::Context *)), this, SIGNAL(activityNameChanged()));
connect(containment()->context(), SIGNAL(changed(Plasma::Context *)), this, SIGNAL(activityIdChanged())); connect(containment()->context(), SIGNAL(changed(Plasma::Context *)), this, SIGNAL(activityIdChanged()));
if (containment()->corona()) {
connect(containment()->corona(), SIGNAL(availableScreenRegionChanged()),
this, SIGNAL(availableScreenRegionChanged()));
}
} }
QScriptValue ContainmentInterface::applets() QScriptValue ContainmentInterface::applets()

View File

@ -422,6 +422,7 @@ Q_SIGNALS:
void screenChanged(); void screenChanged();
void activityNameChanged(); void activityNameChanged();
void activityIdChanged(); void activityIdChanged();
void availableScreenRegionChanged();
protected Q_SLOTS: protected Q_SLOTS:
void appletAddedForward(Plasma::Applet *applet, const QPointF &pos); void appletAddedForward(Plasma::Applet *applet, const QPointF &pos);