--- a/src/hbwidgets/dataform/hbdatagroup_p.cpp Thu Sep 02 20:44:51 2010 +0300
+++ b/src/hbwidgets/dataform/hbdatagroup_p.cpp Fri Sep 17 08:32:10 2010 +0300
@@ -100,9 +100,6 @@
mPageComboBackgroundItem = 0;
q->repolish();
-
- QCoreApplication::sendPostedEvents(q, QEvent::Polish);
-
}
}
}
@@ -293,8 +290,6 @@
}
q->repolish();
-
- QCoreApplication::sendPostedEvents(q, QEvent::Polish);
}
// disconnecting to avoid pagechanged signal when setting group.
@@ -426,6 +421,11 @@
Q_D( HbDataGroup );
d->mGroupHeading->mDescription = description;
+ if(d->mGroupHeading->mDescription.isEmpty()) {
+ setProperty("hasDescription",false);
+ } else {
+ setProperty("hasDescription",true);
+ }
d->mGroupHeading->createPrimitives( );
d->mGroupHeading->updatePrimitives( );
}
@@ -664,6 +664,8 @@
HbDataFormModelItem::DataItemType contentWidgetType =
static_cast<HbDataFormModelItem::DataItemType>(
(d->mIndex.data(HbDataFormModelItem::ItemTypeRole)).toInt());
+ connect(this, SIGNAL(itemShown(const QModelIndex&)),
+ d->mSharedData->mItemView, SIGNAL(itemShown(const QModelIndex&)));
if ( contentWidgetType == HbDataFormModelItem::GroupItem ) {
d->mGroupHeading = new HbDataGroupHeadingWidget();
@@ -684,6 +686,8 @@
HbDataFormModelItem::DescriptionRole).toString();
if(!groupDescription.isEmpty()) {
setDescription(groupDescription);
+ } else {
+ setProperty("hasDescription",false);
}
//update visualization based on whether item is enabled or disabled