equal
deleted
inserted
replaced
41 mModel ( NULL), |
41 mModel ( NULL), |
42 mIsLongPress( false ) |
42 mIsLongPress( false ) |
43 { |
43 { |
44 qDebug("GlxListView::GlxListView()"); |
44 qDebug("GlxListView::GlxListView()"); |
45 mDocLoader = new HbDocumentLoader(); |
45 mDocLoader = new HbDocumentLoader(); |
46 setContentFullScreen( true ); |
|
47 } |
46 } |
48 |
47 |
49 void GlxListView::activate() |
48 void GlxListView::activate() |
50 { |
49 { |
51 qDebug("GlxListView::activate() %d", mWindow->orientation() ); |
50 qDebug("GlxListView::activate() %d", mWindow->orientation() ); |
135 if(loaded) { |
134 if(loaded) { |
136 //retrieve the widgets |
135 //retrieve the widgets |
137 mView = static_cast<HbView*>(mDocLoader->findWidget(QString(GLX_LISTVIEW_VIEW))); |
136 mView = static_cast<HbView*>(mDocLoader->findWidget(QString(GLX_LISTVIEW_VIEW))); |
138 mListView = static_cast<HbListView*>(mDocLoader->findWidget(QString(GLX_LISTVIEW_LIST))); |
137 mListView = static_cast<HbListView*>(mDocLoader->findWidget(QString(GLX_LISTVIEW_LIST))); |
139 |
138 |
140 if(mListView) { |
139 if( mListView ) { |
141 //sets the widget |
140 //sets the widget |
142 setWidget((QGraphicsWidget*) mView); |
141 setWidget((QGraphicsWidget*) mView); |
|
142 HbListViewItem *prototype = mListView->listItemPrototype(); |
|
143 prototype->setStretchingStyle(HbListViewItem::StretchLandscape); |
143 } |
144 } |
144 } |
145 } |
145 HbListViewItem *prototype = mListView->listItemPrototype(); |
|
146 prototype->setStretchingStyle(HbListViewItem::StretchLandscape); |
|
147 } |
146 } |
148 } |
147 } |
149 |
148 |
150 void GlxListView::createListView() |
149 void GlxListView::createListView() |
151 { |
150 { |