Disambiguate promoting the qreal values to integers

svn path=/trunk/KDE/kdelibs/; revision=901944
This commit is contained in:
Adriaan de Groot 2008-12-27 00:31:24 +00:00
parent 72af656f0f
commit 968c6a0d68

View File

@ -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();