summaryrefslogtreecommitdiffstats
path: root/src/render/renderstates/qpolygonoffset.h
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-02-26 09:50:37 +0000
committerSean Harmer <sean.harmer@kdab.com>2016-03-08 13:28:40 +0000
commit2a98c7e7d20bf720c4f4b6444d6317e99face7ec (patch)
tree9c7819883ef88f751beedd8d754c2445064c4edb /src/render/renderstates/qpolygonoffset.h
parent4301f0c352ad5260536994870a5f1a5c713795a6 (diff)
QPolygonOffset renamed units to depthSteps
Carried changes into the QML examples (planets and shadow map) for both PolygonOffset name changes As per API review Change-Id: Idd2676d53794eb6025696a79ddb59a26ac98b085 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/renderstates/qpolygonoffset.h')
-rw-r--r--src/render/renderstates/qpolygonoffset.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/renderstates/qpolygonoffset.h b/src/render/renderstates/qpolygonoffset.h
index 5c147ec8d..dbba09d88 100644
--- a/src/render/renderstates/qpolygonoffset.h
+++ b/src/render/renderstates/qpolygonoffset.h
@@ -53,21 +53,21 @@ class QT3DRENDERSHARED_EXPORT QPolygonOffset : public QRenderState
Q_OBJECT
Q_PROPERTY(float scaleFactor READ scaleFactor WRITE setScaleFactor NOTIFY scaleFactorChanged)
- Q_PROPERTY(float units READ units WRITE setUnits NOTIFY unitsChanged)
+ Q_PROPERTY(float depthSteps READ depthSteps WRITE setDepthSteps NOTIFY depthStepsChanged)
public:
explicit QPolygonOffset(Qt3DCore::QNode *parent = Q_NULLPTR);
~QPolygonOffset();
float scaleFactor() const;
- float units() const;
+ float depthSteps() const;
public Q_SLOTS:
void setScaleFactor(float scaleFactor);
- void setUnits(float units);
+ void setDepthSteps(float depthSteps);
Q_SIGNALS:
void scaleFactorChanged(float scaleFactor);
- void unitsChanged(float units);
+ void depthStepsChanged(float depthSteps);
protected:
void copy(const Qt3DCore::QNode *ref) Q_DECL_OVERRIDE;