diff options
author | Sergiy Dubovik <sergiy.dubovik@nokia.com> | 2010-06-18 11:34:00 +0300 |
---|---|---|
committer | Sergiy Dubovik <sergiy.dubovik@nokia.com> | 2010-06-18 11:34:00 +0300 |
commit | b02a4f098020aed483a76d45b9cb4b3b22b30429 (patch) | |
tree | b34c48e0829b1d87fcee77b7dc2609d6b3783c59 /demos | |
parent | 1f9242843610bb479fc8c2edeb530fa900da5af2 (diff) |
Revert "Changes: Removed call to deprecated list items initLayout method from widgetsgallery usage cases."
This reverts commit 41bd68710c116366484f6f8bb5d77ac3d969891f.
Not good commit.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/widgetsgallery/contentitemspage.cpp | 3 | ||||
-rw-r--r-- | demos/widgetsgallery/maincategorypage.cpp | 1 | ||||
-rw-r--r-- | demos/widgetsgallery/mainpage.cpp | 1 | ||||
-rw-r--r-- | demos/widgetsgallery/mlistpage.cpp | 1 | ||||
-rw-r--r-- | demos/widgetsgallery/phonebookcell.cpp | 1 |
5 files changed, 6 insertions, 1 deletions
diff --git a/demos/widgetsgallery/contentitemspage.cpp b/demos/widgetsgallery/contentitemspage.cpp index fe7438e4..af539a2d 100644 --- a/demos/widgetsgallery/contentitemspage.cpp +++ b/demos/widgetsgallery/contentitemspage.cpp @@ -47,6 +47,7 @@ public: if (cell == NULL) { cell = new MBasicListItem(itemStyle); + cell->initLayout(); cell->setLayoutPosition(M::CenterPosition); } updateCell(index, cell); @@ -111,6 +112,7 @@ public: if (cell == NULL) { cell = new MDetailedListItem(itemStyle); + cell->initLayout(); cell->setLayoutPosition(M::CenterPosition); } updateCell(index, cell); @@ -185,6 +187,7 @@ public: if (cell == NULL) { cell = new MAdvancedListItem(itemStyle); + cell->initLayout(); cell->setLayoutPosition(M::CenterPosition); } updateCell(index, cell); diff --git a/demos/widgetsgallery/maincategorypage.cpp b/demos/widgetsgallery/maincategorypage.cpp index 90553987..9c7aae03 100644 --- a/demos/widgetsgallery/maincategorypage.cpp +++ b/demos/widgetsgallery/maincategorypage.cpp @@ -46,6 +46,7 @@ public: MBasicListItem *cell = dynamic_cast<MBasicListItem *>(recycler.take(MBasicListItem::staticMetaObject.className())); if (cell == NULL) { cell = new MBasicListItem(MBasicListItem::SingleTitle); + cell->initLayout(); cell->setLayoutPosition(M::CenterPosition); } updateCell(index, cell); diff --git a/demos/widgetsgallery/mainpage.cpp b/demos/widgetsgallery/mainpage.cpp index e7413434..cb32e273 100644 --- a/demos/widgetsgallery/mainpage.cpp +++ b/demos/widgetsgallery/mainpage.cpp @@ -253,6 +253,7 @@ public: MBasicListItem *cell = dynamic_cast<MBasicListItem *>(recycler.take(MBasicListItem::staticMetaObject.className())); if (cell == NULL) { cell = new MBasicListItem(MBasicListItem::SingleTitle); + cell->initLayout(); cell->setLayoutPosition(M::CenterPosition); } updateCell(index, cell); diff --git a/demos/widgetsgallery/mlistpage.cpp b/demos/widgetsgallery/mlistpage.cpp index 2c94b160..98d5b4de 100644 --- a/demos/widgetsgallery/mlistpage.cpp +++ b/demos/widgetsgallery/mlistpage.cpp @@ -94,6 +94,7 @@ public: PhoneBookCell *cell = dynamic_cast<PhoneBookCell *>(recycler.take(PhoneBookCell::staticMetaObject.className())); if (cell == NULL) { cell = new PhoneBookCell; + cell->initLayout(); } updateCell(index, cell); return cell; diff --git a/demos/widgetsgallery/phonebookcell.cpp b/demos/widgetsgallery/phonebookcell.cpp index 24cf4ac5..8af7c787 100644 --- a/demos/widgetsgallery/phonebookcell.cpp +++ b/demos/widgetsgallery/phonebookcell.cpp @@ -35,7 +35,6 @@ PhoneBookCell::PhoneBookCell() subtitleLabel(NULL), imageWidget(NULL) { - initLayout(); } PhoneBookCell::~PhoneBookCell() |