aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickshadereffectmesh.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@viroteck.net>2015-01-07 22:00:00 +0100
committerRobin Burchell <robin.burchell@viroteck.net>2015-01-09 12:41:30 +0100
commit5607810f4ee67343c82e91c78620a27ebdd6a983 (patch)
tree7ae9a0a72431b558b28aa971aade1a9814060d2a /src/quick/items/qquickshadereffectmesh.cpp
parent32b6630a750850cd3d33df55b6f298fb2de23b3a (diff)
QQuickGridMesh: Avoid a signal connection per mesh instance by just calling the signal directly.
This can be instantiated a fair number of times, leading to a lot of signal connections. Since the signal is so simple, just place a function call inline and avoid unnecessary allocations. Change-Id: I031245c46bf797898f22ed991d0e97d73728bdf5 Reviewed-by: Michael Brasser <michael.brasser@live.com> Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/quick/items/qquickshadereffectmesh.cpp')
-rw-r--r--src/quick/items/qquickshadereffectmesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickshadereffectmesh.cpp b/src/quick/items/qquickshadereffectmesh.cpp
index 1eab3b4148..4100594711 100644
--- a/src/quick/items/qquickshadereffectmesh.cpp
+++ b/src/quick/items/qquickshadereffectmesh.cpp
@@ -59,7 +59,6 @@ QQuickGridMesh::QQuickGridMesh(QObject *parent)
: QQuickShaderEffectMesh(parent)
, m_resolution(1, 1)
{
- connect(this, SIGNAL(resolutionChanged()), this, SIGNAL(geometryChanged()));
}
QSGGeometry *QQuickGridMesh::updateGeometry(QSGGeometry *geometry, const QVector<QByteArray> &attributes, const QRectF &srcRect, const QRectF &dstRect)
@@ -204,6 +203,7 @@ void QQuickGridMesh::setResolution(const QSize &res)
}
m_resolution = res;
emit resolutionChanged();
+ emit geometryChanged();
}
QSize QQuickGridMesh::resolution() const