summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qcuboidmesh.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2014-10-20 07:44:12 +0200
committerSean Harmer <sean.harmer@kdab.com>2014-10-20 08:47:17 +0200
commit0c8a6df93997e7aba0c8269ce986bd8fe4168d5b (patch)
tree0629f1f3459c092414989e62ffbd11e4ac6ea1ef /src/render/frontend/qcuboidmesh.cpp
parentf28d3304ee5e7d046ac553bd680d5b0245d48e4d (diff)
QAbstractMesh: setDirty -> update
Change-Id: I8e4094d69446ec8290fa34e4875f5e1cf822054c Task-number: QTBUG-41522 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/frontend/qcuboidmesh.cpp')
-rw-r--r--src/render/frontend/qcuboidmesh.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/render/frontend/qcuboidmesh.cpp b/src/render/frontend/qcuboidmesh.cpp
index d9f684620..d41448d58 100644
--- a/src/render/frontend/qcuboidmesh.cpp
+++ b/src/render/frontend/qcuboidmesh.cpp
@@ -77,13 +77,13 @@ void QCuboidMesh::copy(const QNode *ref)
QCuboidMesh::QCuboidMesh(QNode *parent)
: QAbstractMesh(*new QCuboidMeshPrivate(this), parent)
{
- setDirty(true);
+ update();
}
QCuboidMesh::QCuboidMesh(QCuboidMeshPrivate &dd, QNode *parent)
: QAbstractMesh(dd, parent)
{
- setDirty(true);
+ update();
}
void QCuboidMesh::setXExtent(float xExtent)
@@ -92,7 +92,7 @@ void QCuboidMesh::setXExtent(float xExtent)
if (d->m_xExtent != xExtent) {
d->m_xExtent = xExtent;
emit xExtentChanged();
- setDirty(true);
+ update();
}
}
@@ -108,7 +108,7 @@ void QCuboidMesh::setYExtent(float yExtent)
if (d->m_yExtent != yExtent) {
d->m_yExtent = yExtent;
emit yExtentChanged();
- setDirty(true);
+ update();
}
}
@@ -124,7 +124,7 @@ void QCuboidMesh::setZExtent(float zExtent)
if (d->m_zExtent != zExtent) {
d->m_zExtent = zExtent;
emit zExtentChanged();
- setDirty(true);
+ update();
}
}
@@ -140,7 +140,7 @@ void QCuboidMesh::setYZMeshResolution(const QSize &resolution)
if (d->m_yzFaceResolution != resolution) {
d->m_yzFaceResolution = resolution;
emit yzMeshResolutionChanged();
- setDirty(true);
+ update();
}
}
@@ -156,7 +156,7 @@ void QCuboidMesh::setXZMeshResolution(const QSize &resolution)
if (d->m_xzFaceResolution != resolution) {
d->m_xzFaceResolution = resolution;
emit xzMeshResolutionChanged();
- setDirty(true);
+ update();
}
}
@@ -172,7 +172,7 @@ void QCuboidMesh::setXYMeshResolution(const QSize &resolution)
if (d->m_xyFaceResolution != resolution) {
d->m_xyFaceResolution = resolution;
emit xyMeshResolutionChanged();
- setDirty(true);
+ update();
}
}