aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
diff options
context:
space:
mode:
authorSebastian Hartte <sebastian@hartte.de>2020-05-21 20:14:14 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2020-05-22 09:01:49 +0000
commit2ad9d682bd64328fc341e0c28123976fbde8b792 (patch)
treec64292cff8f16110486875ab61c077a83d1401ac /src/qml/qml/v8/qqmlbuiltinfunctions.cpp
parentab7d9715b4c23d83a1bab6c91e6cda06fe64c0c1 (diff)
Clarify argument types for QML's Qt.point, Qt.rect, and Qt.size
The documentation incorrectly states that the method arguments are integers, but the methods actually use floating point arguments. Pick-to: 5.15 Pick-to: 5.12 Change-Id: Ib55d2a874c60c3960b88ce465b19b5d20be95662 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/qml/qml/v8/qqmlbuiltinfunctions.cpp')
-rw-r--r--src/qml/qml/v8/qqmlbuiltinfunctions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
index 1123949cfa..cbcbf1da19 100644
--- a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
+++ b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
@@ -393,7 +393,7 @@ ReturnedValue QtObject::method_colorEqual(const FunctionObject *b, const Value *
}
/*!
- \qmlmethod rect Qt::rect(int x, int y, int width, int height)
+ \qmlmethod rect Qt::rect(real x, real y, real width, real height)
Returns a rect with the top-left corner at \a x, \a y and the specified \a width and \a height.
*/
@@ -412,7 +412,7 @@ ReturnedValue QtObject::method_rect(const FunctionObject *b, const Value *, cons
}
/*!
- \qmlmethod point Qt::point(int x, int y)
+ \qmlmethod point Qt::point(real x, real y)
Returns a point with the specified \a x and \a y coordinates.
*/
@@ -429,7 +429,7 @@ ReturnedValue QtObject::method_point(const FunctionObject *b, const Value *, con
}
/*!
- \qmlmethod size Qt::size(int width, int height)
+ \qmlmethod size Qt::size(real width, real height)
Returns a size with the specified \a width and \a height.
*/