From 78163b717083283451041323d05d630ccac45d47 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Sun, 8 Jul 2012 12:23:45 +0100 Subject: Add note and references to the operator*=() methods for consistency Change-Id: Ic2681e1db39a30619d3b2a906595cdbdd0e766d6 Reviewed-by: Casper van Donderen --- src/corelib/tools/qpoint.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/corelib/tools/qpoint.cpp') 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*=() */ /*! -- cgit v1.2.3