summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativelistview.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-03-16 13:04:04 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-03-22 14:41:14 (GMT)
commit342d2ad8b4b6d92e7ae9ba2aa0beb94d5bc970b1 (patch)
treee587a67bdc17fdb78c27a9c2c34c7c9197af7a7d /src/declarative/graphicsitems/qdeclarativelistview.cpp
parentd6a3821f9e04e08c227136c17c29d2684458d846 (diff)
downloadQt-342d2ad8b4b6d92e7ae9ba2aa0beb94d5bc970b1.zip
Qt-342d2ad8b4b6d92e7ae9ba2aa0beb94d5bc970b1.tar.gz
Qt-342d2ad8b4b6d92e7ae9ba2aa0beb94d5bc970b1.tar.bz2
Fix warning about comparing Qt::Orientation to QDeclarativeView::Orientation
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativelistview.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativelistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview.cpp b/src/declarative/graphicsitems/qdeclarativelistview.cpp
index 6ae1ddc..39bb429 100644
--- a/src/declarative/graphicsitems/qdeclarativelistview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativelistview.cpp
@@ -2801,7 +2801,7 @@ void QDeclarativeListView::geometryChanged(const QRectF &newGeometry,
Q_D(QDeclarativeListView);
d->maxExtentDirty = true;
d->minExtentDirty = true;
- if (d->isRightToLeft() && d->orient == Qt::Horizontal) {
+ if (d->isRightToLeft() && d->orient == QDeclarativeListView::Horizontal) {
// maintain position relative to the right edge
int dx = newGeometry.width() - oldGeometry.width();
setContentX(contentX() - dx);