--- 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();
}