summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/fx/qfxlistview.cpp')
-rw-r--r--src/declarative/fx/qfxlistview.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp
index b256c4a..ad752a7 100644
--- a/src/declarative/fx/qfxlistview.cpp
+++ b/src/declarative/fx/qfxlistview.cpp
@@ -356,6 +356,8 @@ void QFxListViewPrivate::init()
{
Q_Q(QFxListView);
q->setOptions(QFxListView::IsFocusRealm);
+ QObject::connect(q, SIGNAL(heightChanged()), q, SLOT(refill()));
+ QObject::connect(q, SIGNAL(widthChanged()), q, SLOT(refill()));
}
void QFxListViewPrivate::clear()
@@ -1190,28 +1192,6 @@ QString QFxListView::currentSection() const
return d->currentSection;
}
-/*!
- \reimp
-*/
-void QFxListView::setHeight(int height)
-{
- Q_D(QFxListView);
- QFxFlickable::setHeight(height);
- if (d->orient == Qt::Vertical && isComponentComplete())
- refill();
-}
-
-/*!
- \reimp
-*/
-void QFxListView::setWidth(int width)
-{
- Q_D(QFxListView);
- QFxFlickable::setWidth(width);
- if (d->orient == Qt::Horizontal && isComponentComplete())
- refill();
-}
-
void QFxListView::viewportMoved()
{
Q_D(QFxListView);