propagate containmentTypeChanged
This commit is contained in:
parent
6bbc8cb420
commit
bfbeae9969
@ -303,6 +303,7 @@ void Containment::setContainmentType(Plasma::Types::ContainmentType type)
|
||||
}
|
||||
|
||||
d->type = type;
|
||||
emit containmentTypeChanged();
|
||||
}
|
||||
|
||||
Corona *Containment::corona() const
|
||||
|
@ -255,6 +255,11 @@ Q_SIGNALS:
|
||||
*/
|
||||
void wallpaperChanged();
|
||||
|
||||
/**
|
||||
* Emitted when the value of drawWallpaper() has changed
|
||||
*/
|
||||
void drawWallpaperChanged();
|
||||
|
||||
/**
|
||||
* Emitted when the location has changed
|
||||
* @since 5.0
|
||||
@ -274,9 +279,9 @@ Q_SIGNALS:
|
||||
void uiReadyChanged(bool uiReady);
|
||||
|
||||
/**
|
||||
* Emitted when the value of drawWallpaper() has changed
|
||||
* emitted when the containment type changed
|
||||
*/
|
||||
void drawWallpaperChanged();
|
||||
void containmentTypeChanged();
|
||||
|
||||
public Q_SLOTS:
|
||||
/**
|
||||
|
@ -69,6 +69,8 @@ ContainmentInterface::ContainmentInterface(DeclarativeAppletScript *parent)
|
||||
this, &ContainmentInterface::loadWallpaper);
|
||||
connect(containment(), &Plasma::Containment::drawWallpaperChanged,
|
||||
this, &ContainmentInterface::drawWallpaperChanged);
|
||||
connect(containment(), &Plasma::Containment::containmentTypeChanged,
|
||||
this, &ContainmentInterface::containmentTypeChanged);
|
||||
|
||||
if (containment()->corona()) {
|
||||
connect(containment()->corona(), &Plasma::Corona::availableScreenRegionChanged,
|
||||
|
Loading…
Reference in New Issue
Block a user