Fix warning about float truncation in scroller example (CLANG).

Change-Id: I66913c43fb668da128b994f44d3f180e1ce3abbe
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
This commit is contained in:
Friedemann Kleint 2013-03-06 15:48:20 +01:00 committed by The Qt Project
parent 04285d94e8
commit e1d39c6bfc

View File

@ -204,7 +204,7 @@ public:
Q_UNUSED(option);
Q_UNUSED(widget);
painter->setPen(QPen(QColor(100, 100, 100), 3.0));
painter->drawRect(QRect(1.5, 1.5, m_size.width() - 3, m_size.height() - 3));
painter->drawRect(QRectF(1.5, 1.5, m_size.width() - 3, m_size.height() - 3));
}
QSizeF m_size;