Disambiguate promoting the qreal values to integers
svn path=/trunk/KDE/kdelibs/; revision=901944
This commit is contained in:
parent
72af656f0f
commit
968c6a0d68
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user