src/hbwidgets/dataform/hbdataform_p.cpp
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
--- a/src/hbwidgets/dataform/hbdataform_p.cpp	Mon Apr 19 14:02:13 2010 +0300
+++ b/src/hbwidgets/dataform/hbdataform_p.cpp	Mon May 03 12:48:33 2010 +0300
@@ -75,7 +75,7 @@
     q->setItemPrototypes(protos);
     q->setClampingStyle(HbScrollArea::BounceBackClamping);
     q->setItemRecycling(true);
-    treeModelIterator()->setItemContainer(mContainer, HbDataFormViewItem::ExpansionKey);
+    treeModelIterator()->setItemContainer(mContainer);
 }
 
 void  HbDataFormPrivate::_q_page_changed(int index)
@@ -177,6 +177,7 @@
             q,SLOT(_q_page_changed(int)));
 
         mHeadingWidget->mPageCombo->removeItem(mHeadingWidget->mPageCombo->findText(page));
+        mHeadingWidget->mActivePage = mHeadingWidget->mPageCombo->currentIndex();
         
          QObject::connect(mHeadingWidget->mPageCombo,SIGNAL(currentIndexChanged(int)),
             q,SLOT(_q_page_changed(int)));
@@ -213,8 +214,10 @@
                             QString signalName = signal.signal;
                             QString slot = signal.slot;
                             // Make connection
-                            QObject::connect(contentWidget, signalName.toAscii().data(), 
-                                objct,slot.toAscii().data());
+                            if(objct) { 
+                                QObject::connect(contentWidget, signalName.toAscii().data(), 
+                                    objct,slot.toAscii().data());
+                            }
                             
                         }
                     }