From: Alan Alpert Date: Wed, 14 Sep 2011 07:11:25 +0000 (+1000) Subject: Update Turbulence on noiseSource change X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d6a2d7ae8ccec47720371ce9c91c2f40ea4965e7;p=konrad%2Fqtdeclarative.git Update Turbulence on noiseSource change Change-Id: Ib730bcad0a345df8e4cd45aa5b8ab892d3de16f7 Reviewed-on: http://codereview.qt-project.org/4860 Reviewed-by: Qt Sanity Bot Reviewed-by: Martin Jones --- diff --git a/src/declarative/particles/qsgturbulence_p.h b/src/declarative/particles/qsgturbulence_p.h index 110ecf4..ef3e9ec 100644 --- a/src/declarative/particles/qsgturbulence_p.h +++ b/src/declarative/particles/qsgturbulence_p.h @@ -79,7 +79,6 @@ signals: void noiseSourceChanged(QUrl arg); public slots: - void initializeGrid(); void setStrength(qreal arg) { @@ -94,6 +93,7 @@ public slots: if (m_noiseSource != arg) { m_noiseSource = arg; emit noiseSourceChanged(arg); + initializeGrid(); } } @@ -103,6 +103,7 @@ protected: private: void ensureInit(); void mapUpdate(); + void initializeGrid(); qreal boundsRespectingField(int x, int y); qreal m_strength; qreal m_lastT;