calendarui/views/dayview/src/calendayitem.cpp
changeset 64 1881ad52dc45
parent 63 a3cb48f6c889
child 83 5aadd1120515
--- a/calendarui/views/dayview/src/calendayitem.cpp	Wed Aug 25 14:02:13 2010 +0530
+++ b/calendarui/views/dayview/src/calendayitem.cpp	Tue Aug 31 18:15:13 2010 +0530
@@ -70,7 +70,7 @@
     mFrameMinWidth = KCalenMinEventWidth * deviceProfile.unitValue();
     mEventDescMinWidth = KCalenMinTouchableEventWidth
         * deviceProfile.unitValue();
-
+    
     // Minimum width is assured by widgetml and css, additionally called here 
     // to prevent minimum size hint caching inside effectiveSizeHint
     setMinimumWidth(stripeWidth);
@@ -111,10 +111,6 @@
 
         mUpdated = true;
     }
-
-    //TODO: check if needed
-    //repolish(); 
-    //HbAbstractViewItem::updateChildItems();
 }
 
 
@@ -215,10 +211,15 @@
 
     qreal width = rect().width();
 
+    HbDeviceProfile deviceProfile;
     if (width < mEventDescMinWidth) {
+        mColorStripe->setPreferredWidth(KCalenMinTimeStripWidth
+            * deviceProfile.unitValue());
         mEventDesc->hide();
     }
     else {
+        mColorStripe->setPreferredWidth(KCalenTimeStripWidth
+            * deviceProfile.unitValue());
         mEventDesc->show();
     }