diff options
author | Laszlo Papp <lpapp@kde.org> | 2012-07-08 12:23:45 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-10 03:24:01 +0200 |
commit | 78163b717083283451041323d05d630ccac45d47 (patch) | |
tree | 0ad66ba42e3f93975000fba84bf7cb14c7ad233e /src/corelib/tools/qpoint.cpp | |
parent | 917b0df6333a16d5348b535cb6720699965fb7eb (diff) |
Add note and references to the operator*=() methods for consistency
Change-Id: Ic2681e1db39a30619d3b2a906595cdbdd0e766d6
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'src/corelib/tools/qpoint.cpp')
-rw-r--r-- | src/corelib/tools/qpoint.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/corelib/tools/qpoint.cpp b/src/corelib/tools/qpoint.cpp index 07f46c3d61..5404c83b4a 100644 --- a/src/corelib/tools/qpoint.cpp +++ b/src/corelib/tools/qpoint.cpp @@ -295,6 +295,11 @@ QT_BEGIN_NAMESPACE \relates QPoint Returns a copy of the given \a point multiplied by the given \a factor. + + Note that the result is rounded to the nearest integer as points + are held as integers. Use QPointF for floating point accuracy. + + \sa QPoint::operator*=() */ /*! @@ -303,6 +308,11 @@ QT_BEGIN_NAMESPACE \relates QPoint Returns a copy of the given \a point multiplied by the given \a factor. + + Note that the result is rounded to the nearest integer as points + are held as integers. Use QPointF for floating point accuracy. + + \sa QPoint::operator*=() */ /*! @@ -311,6 +321,8 @@ QT_BEGIN_NAMESPACE \relates QPoint Returns a copy of the given \a point multiplied by the given \a factor. + + \sa QPoint::operator*=() */ /*! |