mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
kdeplasma-addons: update weather wallpaper geometry on hints change
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
188de57c29
commit
941961b4a5
2 changed files with 2 additions and 1 deletions
|
@ -54,6 +54,7 @@ WeatherWallpaper::WeatherWallpaper(QObject * parent, const QVariantList & args )
|
||||||
, m_animation(0)
|
, m_animation(0)
|
||||||
, m_model(0)
|
, m_model(0)
|
||||||
{
|
{
|
||||||
|
connect(this, SIGNAL(renderHintsChanged()), this, SLOT(calculateGeometry()));
|
||||||
connect(this, SIGNAL(renderCompleted(QImage)), this, SLOT(updateBackground(QImage)));
|
connect(this, SIGNAL(renderCompleted(QImage)), this, SLOT(updateBackground(QImage)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -75,12 +75,12 @@ protected slots:
|
||||||
void configWidgetDestroyed();
|
void configWidgetDestroyed();
|
||||||
void advancedDialogDestroyed();
|
void advancedDialogDestroyed();
|
||||||
void locationReady(const QString &source);
|
void locationReady(const QString &source);
|
||||||
|
void calculateGeometry();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void init(const KConfigGroup & config);
|
void init(const KConfigGroup & config);
|
||||||
void fillMetaInfo(Plasma::Package *b);
|
void fillMetaInfo(Plasma::Package *b);
|
||||||
bool setMetadata(QLabel *label, const QString &text);
|
bool setMetadata(QLabel *label, const QString &text);
|
||||||
void calculateGeometry();
|
|
||||||
void renderWallpaper(const QString& image = QString());
|
void renderWallpaper(const QString& image = QString());
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
Loading…
Add table
Reference in a new issue