diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-02-27 16:02:44 +0100 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2019-03-05 11:02:09 +0000 |
commit | cab9fd474304dac5aeb4ac75087ceb80b82eeb82 (patch) | |
tree | 3dfefa9d86b603e12046f05afeecc42e80785a41 /src/compositor/compositor_api/qwaylandquickitem.h | |
parent | 6ddd66f19442ddf4bee13930dfa3ec0070f67138 (diff) |
Compositor: Add revision number for new API
Revisioning API in QML serves two purposes:
- Making sure QML code developed against an older version of Qt doesn't
change its behavior when run with newer versions. This can otherwise
happen due to QML being interpreted, and QML's liberal scoping rules.
- Allowing developers to target an older version of Qt, but developing
a newer version by explicitly asking for an older import.
Change-Id: I837cd449028c4b84c33afa97bcf6c1149801facd
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandquickitem.h')
-rw-r--r-- | src/compositor/compositor_api/qwaylandquickitem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/compositor_api/qwaylandquickitem.h b/src/compositor/compositor_api/qwaylandquickitem.h index 269e55567..2aa8e1b73 100644 --- a/src/compositor/compositor_api/qwaylandquickitem.h +++ b/src/compositor/compositor_api/qwaylandquickitem.h @@ -102,7 +102,7 @@ public: bool inputRegionContains(const QPointF &localPosition) const; bool inputRegionContains(const QPointF &localPosition); Q_INVOKABLE QPointF mapToSurface(const QPointF &point) const; - Q_INVOKABLE QPointF mapFromSurface(const QPointF &point) const; + Q_REVISION(13) Q_INVOKABLE QPointF mapFromSurface(const QPointF &point) const; bool sizeFollowsSurface() const; void setSizeFollowsSurface(bool sizeFollowsSurface); |