kdeplasma-addons: update weather wallpaper geometry on hints change

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-07-30 01:03:39 +03:00
parent 188de57c29
commit 941961b4a5
2 changed files with 2 additions and 1 deletions

View file

@ -54,6 +54,7 @@ WeatherWallpaper::WeatherWallpaper(QObject * parent, const QVariantList & args )
, m_animation(0)
, m_model(0)
{
connect(this, SIGNAL(renderHintsChanged()), this, SLOT(calculateGeometry()));
connect(this, SIGNAL(renderCompleted(QImage)), this, SLOT(updateBackground(QImage)));
}

View file

@ -75,12 +75,12 @@ protected slots:
void configWidgetDestroyed();
void advancedDialogDestroyed();
void locationReady(const QString &source);
void calculateGeometry();
protected:
void init(const KConfigGroup & config);
void fillMetaInfo(Plasma::Package *b);
bool setMetadata(QLabel *label, const QString &text);
void calculateGeometry();
void renderWallpaper(const QString& image = QString());
private slots: