equal
deleted
inserted
replaced
275 // Add margins between the event |
275 // Add margins between the event |
276 eventStartX += columnIdx * eventWidth + mLayoutValues.eventMargin; |
276 eventStartX += columnIdx * eventWidth + mLayoutValues.eventMargin; |
277 eventWidth -= mLayoutValues.eventMargin; |
277 eventWidth -= mLayoutValues.eventMargin; |
278 } |
278 } |
279 |
279 |
|
280 // Verify if height of event is greater than minimum (UI spec) |
|
281 qreal minHeight = CalenDayUtils::instance()->minEventHeight(); |
|
282 eventHeight = (eventHeight < minHeight ? minHeight : eventHeight); |
280 QRectF eventGeometry(eventStartX, eventStartY, eventWidth, eventHeight); |
283 QRectF eventGeometry(eventStartX, eventStartY, eventWidth, eventHeight); |
281 |
284 |
282 // Workaround to prevent size hint caching inside effectiveSizeHint |
285 // Workaround to prevent size hint caching inside effectiveSizeHint |
283 item->setMinimumSize(0, 0); |
286 item->setMinimumSize(0, 0); |
284 item->setMaximumSize(eventWidth, eventHeight); |
287 item->setMaximumSize(eventWidth, eventHeight); |