diff options
author | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-08-11 08:26:31 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-08-11 16:03:15 (GMT) |
commit | 37a8926fd8aa1971a4d0a8b04facf63c631b9367 (patch) | |
tree | 55acc48f9a0e4eab027aded502fcd3153fe7330e /src/gui/graphicsview | |
parent | 1c62dc421cf1ae45fe5089674b4d67fd0f1ff529 (diff) | |
download | Qt-37a8926fd8aa1971a4d0a8b04facf63c631b9367.zip Qt-37a8926fd8aa1971a4d0a8b04facf63c631b9367.tar.gz Qt-37a8926fd8aa1971a4d0a8b04facf63c631b9367.tar.bz2 |
fix warnings for the qreal == float case
Reviewed-by: mauricek
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene_p.h b/src/gui/graphicsview/qgraphicsscene_p.h index a4bbdd2..7415591 100644 --- a/src/gui/graphicsview/qgraphicsscene_p.h +++ b/src/gui/graphicsview/qgraphicsscene_p.h @@ -267,9 +267,9 @@ static inline void _q_adjustRect(QRectF *rect) { Q_ASSERT(rect); if (!rect->width()) - rect->adjust(-0.00001, 0, 0.00001, 0); + rect->adjust(qreal(-0.00001), 0, qreal(0.00001), 0); if (!rect->height()) - rect->adjust(0, -0.00001, 0, 0.00001); + rect->adjust(0, qreal(-0.00001), 0, qreal(0.00001)); } static inline QRectF adjustedItemBoundingRect(const QGraphicsItem *item) |