summaryrefslogtreecommitdiffstats
path: root/src/render/geometry/qcuboidgeometry.h
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@theqtcompany.com>2015-12-08 11:50:37 +0200
committerTomi Korpipää <tomi.korpipaa@theqtcompany.com>2015-12-09 05:18:19 +0000
commit0e15154c9f0d982096a551efc53fd363d2b2f68d (patch)
tree4917ca73c44a92297db7cc3dbd72d2716481ccc7 /src/render/geometry/qcuboidgeometry.h
parent036ea9fcfdd343c805e1a900528e7a2367d6c373 (diff)
Added parameters to signals and made setters Q_SLOTS
Change-Id: Icec2f9f207221e35ffdeeb594bb9b4dc6ef890f1 Task-number: QTBUG-49797 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/geometry/qcuboidgeometry.h')
-rw-r--r--src/render/geometry/qcuboidgeometry.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/render/geometry/qcuboidgeometry.h b/src/render/geometry/qcuboidgeometry.h
index 2c9ef0c03..6118aa123 100644
--- a/src/render/geometry/qcuboidgeometry.h
+++ b/src/render/geometry/qcuboidgeometry.h
@@ -68,12 +68,6 @@ public:
void updateIndices();
void updateVertices();
- void setXExtent(float xExtent);
- void setYExtent(float yExtent);
- void setZExtent(float zExtent);
- void setYZMeshResolution(const QSize &resolution);
- void setXZMeshResolution(const QSize &resolution);
- void setXYMeshResolution(const QSize &resolution);
float xExtent() const;
float yExtent() const;
@@ -88,14 +82,22 @@ public:
QAttribute *tangentAttribute() const;
QAttribute *indexAttribute() const;
+public Q_SLOTS:
+ void setXExtent(float xExtent);
+ void setYExtent(float yExtent);
+ void setZExtent(float zExtent);
+ void setYZMeshResolution(const QSize &resolution);
+ void setXZMeshResolution(const QSize &resolution);
+ void setXYMeshResolution(const QSize &resolution);
+
Q_SIGNALS:
- void xExtentChanged();
- void yExtentChanged();
- void zExtentChanged();
+ void xExtentChanged(float xExtent);
+ void yExtentChanged(float yExtent);
+ void zExtentChanged(float zExtent);
- void yzMeshResolutionChanged();
- void xzMeshResolutionChanged();
- void xyMeshResolutionChanged();
+ void yzMeshResolutionChanged(const QSize &yzMeshResolution);
+ void xzMeshResolutionChanged(const QSize &xzMeshResolution);
+ void xyMeshResolutionChanged(const QSize &xyMeshResolution);
protected:
QCuboidGeometry(QCuboidGeometryPrivate &dd, QNode *parent = Q_NULLPTR);