From 968c6a0d68da1d949475bb54af53571f705f0bc4 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sat, 27 Dec 2008 00:31:24 +0000 Subject: [PATCH] Disambiguate promoting the qreal values to integers svn path=/trunk/KDE/kdelibs/; revision=901944 --- private/toolbox.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/private/toolbox.cpp b/private/toolbox.cpp index f90d7805a..488d9509a 100644 --- a/private/toolbox.cpp +++ b/private/toolbox.cpp @@ -208,8 +208,8 @@ void ToolBox::mouseMoveEvent(QGraphicsSceneMouseEvent *event) d->userMoved = true; const QPoint newPos = mapToParent(event->pos()).toPoint(); const QPoint curPos = pos().toPoint(); - const int h = abs(boundingRect().height()); - const int w = abs(boundingRect().width()); + const int h = abs((int)boundingRect().height()); + const int w = abs((int)boundingRect().width()); const int areaWidth = parentWidget()->size().width(); const int areaHeight = parentWidget()->size().height();