diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2020-03-23 16:07:09 +0100 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2020-04-23 12:13:20 +0200 |
commit | 9fd4160307ab54b89d0145ebde0a91d293fa95a5 (patch) | |
tree | 4931fac50b7237d23a8d2064c665c9da841ef96a /examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm | |
parent | 05293cde367678cca78a46f7a050a1fd41686e87 (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 'examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm')
-rw-r--r-- | examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm b/examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm index 5a86cacbfe..61f5e7f8e1 100644 --- a/examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm +++ b/examples/quick/scenegraph/metaltextureimport/metaltextureimport.mm @@ -147,9 +147,9 @@ QSGNode *CustomTextureItem::updatePaintNode(QSGNode *node, UpdatePaintNodeData * } //! [2] -void CustomTextureItem::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) +void CustomTextureItem::geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) { - QQuickItem::geometryChanged(newGeometry, oldGeometry); + QQuickItem::geometryChange(newGeometry, oldGeometry); if (newGeometry.size() != oldGeometry.size()) update(); |