Show extra dates in timeline view in some cases

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Extracted painting dates to separate class

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Do not require TimelineDatePainter to know about left padding

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Improved condition in EventTimelineDatePainter::paintDates

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Moved days UTC shifting outside of EventTimelineDatePainter::paintDates

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Changed some variables in EventTimelineDatePainter to fields

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

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

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Fix variable intiialziations in paintDate

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Improved converting date to string

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

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Moved setting up all painter stuff back to widget

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Use setters instead of constructor parameters in EventTimelineDatePainter

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Add QPainter to list of fields in date painter

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Cache font height in date painter

Signed-off-by: Rafał Malinowski <rafal.malinowski@corp.bluecherry.net>
Removed unneeded paramters and return values

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

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

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

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

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