ui/views/listview/src/glxlistview.cpp
changeset 48 d0b4e67b3a60
parent 26 c499df2dbb33
child 45 863223ea6961
--- a/ui/views/listview/src/glxlistview.cpp	Fri Jun 11 13:38:23 2010 +0300
+++ b/ui/views/listview/src/glxlistview.cpp	Wed Jun 23 18:12:48 2010 +0300
@@ -43,7 +43,6 @@
 {
     qDebug("GlxListView::GlxListView()");
     mDocLoader = new HbDocumentLoader();
-    setContentFullScreen( true );
 }
 
 void GlxListView::activate()
@@ -137,13 +136,13 @@
             mView = static_cast<HbView*>(mDocLoader->findWidget(QString(GLX_LISTVIEW_VIEW)));
             mListView = static_cast<HbListView*>(mDocLoader->findWidget(QString(GLX_LISTVIEW_LIST)));
 
-            if(mListView) { 
+            if( mListView ) { 
                 //sets the widget
                 setWidget((QGraphicsWidget*) mView);
+                HbListViewItem *prototype = mListView->listItemPrototype();
+                prototype->setStretchingStyle(HbListViewItem::StretchLandscape);
             }
         }  
-        HbListViewItem *prototype = mListView->listItemPrototype();
-        prototype->setStretchingStyle(HbListViewItem::StretchLandscape);
     }
 }