aboutsummaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorStanislav Ionascu <stanislav.ionascu@nokia.com>2010-10-13 12:24:02 +0300
committerSergiy Dubovik <sergiy.dubovik@nokia.com>2010-10-13 12:29:35 +0300
commit7636548d34ef985e7d818b13442fb69e0ccc8cc9 (patch)
treeb22a694cc44a34f8da9760670d38dfa0b2ae9d9b /demos
parent3ac132a4da7c6c43c7128b509b938da43d8e7da1 (diff)
Fixes: NB#195503 - Pannable viewport size is not updated after orientation change.
RevBy: Sergiy Dubovik Details: The list has to follow the visible viewport height, so when it's getting smaller, the invisible items should not update. Also improves widgets gallery list page, so the thumbnails are updated after orientation is changed.
Diffstat (limited to 'demos')
-rw-r--r--demos/widgetsgallery/mlistpage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/widgetsgallery/mlistpage.cpp b/demos/widgetsgallery/mlistpage.cpp
index f374a4f9..c6361d28 100644
--- a/demos/widgetsgallery/mlistpage.cpp
+++ b/demos/widgetsgallery/mlistpage.cpp
@@ -679,6 +679,8 @@ void MListPage::createContent()
connect(list, SIGNAL(itemClicked(QModelIndex)), this, SLOT(itemClick(QModelIndex)));
connect(list, SIGNAL(itemLongTapped(QModelIndex,QPointF)), this, SLOT(itemLongTapped(QModelIndex,QPointF)));
+ connect(sceneManager(), SIGNAL(orientationChanged(M::Orientation)), this, SLOT(loadPicturesInVisibleItems()));
+
retranslateUi();
}
@@ -692,3 +694,4 @@ void MListPage::retranslateUi()
// at the moment. If more qtTrId() calls are needed they should
// be added here.
}
+