summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxgridview.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-14 05:38:27 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-14 05:38:27 (GMT)
commitefc9a552d6d3f03b962ce0df260fb2c61b8b8ec1 (patch)
tree67c289729c6539769f02e909d20ce3a1cb99cad0 /src/declarative/fx/qfxgridview.cpp
parent802674eb8afa56a3bed3f4e280ef4876d1355328 (diff)
downloadQt-efc9a552d6d3f03b962ce0df260fb2c61b8b8ec1.zip
Qt-efc9a552d6d3f03b962ce0df260fb2c61b8b8ec1.tar.gz
Qt-efc9a552d6d3f03b962ce0df260fb2c61b8b8ec1.tar.bz2
Make compile on arm.
Diffstat (limited to 'src/declarative/fx/qfxgridview.cpp')
-rw-r--r--src/declarative/fx/qfxgridview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/fx/qfxgridview.cpp b/src/declarative/fx/qfxgridview.cpp
index 5156d06..0f848d6 100644
--- a/src/declarative/fx/qfxgridview.cpp
+++ b/src/declarative/fx/qfxgridview.cpp
@@ -472,7 +472,7 @@ void QFxGridViewPrivate::refill(qreal from, qreal to)
void QFxGridViewPrivate::updateGrid()
{
Q_Q(QFxGridView);
- columns = (int)qMax((flow == QFxGridView::LeftToRight ? q->width() : q->height()) / colSize(), 1.);
+ columns = (int)qMax((flow == QFxGridView::LeftToRight ? q->width() : q->height()) / colSize(), qreal(1.));
if (isValid()) {
if (flow == QFxGridView::LeftToRight)
q->setViewportHeight(endPosition() - startPosition());