calendarui/views/src/caleneventlistviewitem.cpp
changeset 83 5aadd1120515
parent 70 a5ed90760192
--- a/calendarui/views/src/caleneventlistviewitem.cpp	Tue Oct 05 14:14:48 2010 +0530
+++ b/calendarui/views/src/caleneventlistviewitem.cpp	Fri Oct 15 12:10:36 2010 +0530
@@ -25,6 +25,9 @@
 #include "caleneventlistviewitemTraces.h"
 #endif
 
+// Constants
+const char *stretchLayout("customstretch");
+
 // ----------------------------------------------------------------------------
 // CalenEventListViewItem::CalenEventListViewItem
 // constructor
@@ -72,6 +75,13 @@
 void CalenEventListViewItem::updateChildItems()
 {
     OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_ENTRY );
+    
+    QVariant itemData = modelIndex().data(Qt::UserRole + 1);
+    bool stretch = itemData.toBool();
+    // Set this stretchy to the view item
+    setProperty(stretchLayout, stretch);
+    
+    // Call parent handler
     HbListViewItem::updateChildItems();
     
     OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_EXIT );