summaryrefslogtreecommitdiff
path: root/src/qml
diff options
context:
space:
mode:
authorSebastian Hartte <sebastian@hartte.de>2020-05-21 20:14:14 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-05-22 10:41:15 +0000
commita7a70f663e31a7537d4a5cc2fe5975d84e5d65fc (patch)
treee65293a9a6902dc6d36885ce7e7bf7eaed2a2541 /src/qml
parentb34a9545e9a78646f6bef2cec2da46772ad4defa (diff)
downloadqtdeclarative-a7a70f663e31a7537d4a5cc2fe5975d84e5d65fc.tar.gz
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. Change-Id: Ib55d2a874c60c3960b88ce465b19b5d20be95662 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> (cherry picked from commit 2ad9d682bd64328fc341e0c28123976fbde8b792) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml')
-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 02628a9810..445af48ca4 100644
--- a/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
+++ b/src/qml/qml/v8/qqmlbuiltinfunctions.cpp
@@ -370,7 +370,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.
*/
@@ -389,7 +389,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.
*/
@@ -406,7 +406,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.
*/