Do not try to paint events outside of view

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Extracted EventTimelineWidget::isEventVisible method

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Replaced for loop with foreach in EventTimelineWidget::paintRow

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Extracted EventTimelineWidget::paintEvent method

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Moved translation of coordinates from paintEvent to paintRow

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Moved clipping from paintEvent to paintRow

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Only pass boxHeight to paintEvent, whole rect is unneccessary

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Added top/height parameters to timeCellRect

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Extracted EventTimelineWidget::paintTickLines method

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Small refactorings and name changes inside paintTickLines

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
More EventTimelineWidget::paintTickLines refactoring

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Extracted EventTimelineWidget::secondsFromVisibleStart method

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Use pixelsPerSeconds for calculating tick width

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Improved creating of tickRect in EventTimelineWidget::paintTickLines

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
More improvements in EventTimelineWidget::paintTickLines

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Fixed issue with dissapearing ticks

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Better display of date in timeline widget

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>