Never overlap two dates in EventTimelineWidget

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

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

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

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Fixed crash when window is smaller than certain size

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

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Use y field or RowData instead of map key in most cases

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Use QList instead of QMap for storing layout rows

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

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Use bigger margins for legend

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
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>