equal
deleted
inserted
replaced
22 #include "caleneventlistviewitem.h" |
22 #include "caleneventlistviewitem.h" |
23 #include "OstTraceDefinitions.h" |
23 #include "OstTraceDefinitions.h" |
24 #ifdef OST_TRACE_COMPILER_IN_USE |
24 #ifdef OST_TRACE_COMPILER_IN_USE |
25 #include "caleneventlistviewitemTraces.h" |
25 #include "caleneventlistviewitemTraces.h" |
26 #endif |
26 #endif |
|
27 |
|
28 // Constants |
|
29 const char *stretchLayout("customstretch"); |
27 |
30 |
28 // ---------------------------------------------------------------------------- |
31 // ---------------------------------------------------------------------------- |
29 // CalenEventListViewItem::CalenEventListViewItem |
32 // CalenEventListViewItem::CalenEventListViewItem |
30 // constructor |
33 // constructor |
31 // ---------------------------------------------------------------------------- |
34 // ---------------------------------------------------------------------------- |
70 // ---------------------------------------------------------------------------- |
73 // ---------------------------------------------------------------------------- |
71 // |
74 // |
72 void CalenEventListViewItem::updateChildItems() |
75 void CalenEventListViewItem::updateChildItems() |
73 { |
76 { |
74 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_ENTRY ); |
77 OstTraceFunctionEntry0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_ENTRY ); |
|
78 |
|
79 QVariant itemData = modelIndex().data(Qt::UserRole + 1); |
|
80 bool stretch = itemData.toBool(); |
|
81 // Set this stretchy to the view item |
|
82 setProperty(stretchLayout, stretch); |
|
83 |
|
84 // Call parent handler |
75 HbListViewItem::updateChildItems(); |
85 HbListViewItem::updateChildItems(); |
76 |
86 |
77 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_EXIT ); |
87 OstTraceFunctionExit0( CALENEVENTLISTVIEWITEM_UPDATECHILDITEMS_EXIT ); |
78 } |
88 } |
79 |
89 |