calendarui/views/dayview/src/calendaycontainer.cpp
changeset 70 a5ed90760192
parent 64 1881ad52dc45
child 83 5aadd1120515
equal deleted inserted replaced
64:1881ad52dc45 70:a5ed90760192
   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);