aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/particles/qsgparticlepainter_p.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-09-15 14:04:36 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-16 03:48:32 +0200
commitc38cb09593c93ff2ceae04a6c69706c7bd5c888d (patch)
treef4e74c036aa427152ac24fa7b4e3713f8a79ef40 /src/declarative/particles/qsgparticlepainter_p.h
parent05665e5fc739b38a94d6fc1e37af8bc1631aa9c4 (diff)
Update system offset every frame
May be expensive if large systems animate painters, but seems safer than messing with the tranformation matrix. Change-Id: Ie5b21e9f238b5305bef44c48027a3337c70b2aaa Reviewed-on: http://codereview.qt-project.org/4933 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/declarative/particles/qsgparticlepainter_p.h')
-rw-r--r--src/declarative/particles/qsgparticlepainter_p.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/declarative/particles/qsgparticlepainter_p.h b/src/declarative/particles/qsgparticlepainter_p.h
index d469947453..4b627e9457 100644
--- a/src/declarative/particles/qsgparticlepainter_p.h
+++ b/src/declarative/particles/qsgparticlepainter_p.h
@@ -86,17 +86,16 @@ signals:
void groupsChanged(QStringList arg);
public slots:
-void setSystem(QSGParticleSystem* arg);
+ void setSystem(QSGParticleSystem* arg);
-void setGroups(QStringList arg)
-{
- if (m_groups != arg) {
- m_groups = arg;
- emit groupsChanged(arg);
+ void setGroups(QStringList arg)
+ {
+ if (m_groups != arg) {
+ m_groups = arg;
+ emit groupsChanged(arg);
+ }
}
-}
-private slots:
void calcSystemOffset(bool resetPending = false);
protected: