summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qrect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qrect.cpp')
-rw-r--r--src/corelib/tools/qrect.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/tools/qrect.cpp b/src/corelib/tools/qrect.cpp
index 698181b7f33..a82183bc804 100644
--- a/src/corelib/tools/qrect.cpp
+++ b/src/corelib/tools/qrect.cpp
@@ -2333,10 +2333,10 @@ bool QRectF::intersects(const QRectF &r) const noexcept
QRect QRectF::toAlignedRect() const noexcept
{
- int xmin = int(qFloor(xp));
- int xmax = int(qCeil(xp + w));
- int ymin = int(qFloor(yp));
- int ymax = int(qCeil(yp + h));
+ int xmin = qFloor(xp);
+ int xmax = qCeil(xp + w);
+ int ymin = qFloor(yp);
+ int ymax = qCeil(yp + h);
return QRect(xmin, ymin, xmax - xmin, ymax - ymin);
}