aboutsummaryrefslogtreecommitdiffstats
path: root/src/particles
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2020-03-23 16:07:09 +0100
committerMitch Curtis <mitch.curtis@qt.io>2020-04-23 12:13:20 +0200
commit9fd4160307ab54b89d0145ebde0a91d293fa95a5 (patch)
tree4931fac50b7237d23a8d2064c665c9da841ef96a /src/particles
parent05293cde367678cca78a46f7a050a1fd41686e87 (diff)
QQuickItem: rename geometryChanged to geometryChange
This brings it in line with the existing convention in this and other modules, where virtual handlers are named "nounChange"; e.g. itemChange. Signals are named "nounChanged". This also allows adding a geometryChanged signal, which would enable users to listen to one signal for all changes to x/y/width/height. [ChangeLog][QQuickItem] Renamed geometryChanged to geometryChange in order to follow existing naming conventions and have consistency with existing API, such as itemChange. Task-number: QTBUG-82994 Change-Id: I0547358c796a0047982ccfbf2c38bab952e7a634 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/particles')
-rw-r--r--src/particles/qquickturbulence.cpp2
-rw-r--r--src/particles/qquickturbulence_p.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/particles/qquickturbulence.cpp b/src/particles/qquickturbulence.cpp
index dff266a6ea..bc051ef6b7 100644
--- a/src/particles/qquickturbulence.cpp
+++ b/src/particles/qquickturbulence.cpp
@@ -85,7 +85,7 @@ QQuickTurbulenceAffector::QQuickTurbulenceAffector(QQuickItem *parent) :
{
}
-void QQuickTurbulenceAffector::geometryChanged(const QRectF &, const QRectF &)
+void QQuickTurbulenceAffector::geometryChange(const QRectF &, const QRectF &)
{
initializeGrid();
}
diff --git a/src/particles/qquickturbulence_p.h b/src/particles/qquickturbulence_p.h
index 77239660d8..e6204f4f0b 100644
--- a/src/particles/qquickturbulence_p.h
+++ b/src/particles/qquickturbulence_p.h
@@ -105,8 +105,7 @@ public Q_SLOTS:
}
protected:
- void geometryChanged(const QRectF &newGeometry,
- const QRectF &oldGeometry) override;
+ void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override;
private:
void ensureInit();
void mapUpdate();