Skip to content
Snippets Groups Projects
Commit 9da7c8c4 authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Pierre Lamot
Browse files

qt: fix QDateTime warning when Qt 5.14 is used


Signed-off-by: default avatarPierre Lamot <pierre@videolabs.io>
parent ecebe9fc
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,12 @@ void EPGGraphicsScene::drawBackground( QPainter *painter, const QRectF &rect)
/* day change */
QDateTime rectstarttime = epgView->startTime().addSecs( rect.left() );
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
QDateTime nextdaylimit = rectstarttime.date().startOfDay();
#else
QDateTime nextdaylimit = QDateTime( rectstarttime.date() );
#endif
QRectF area( rect );
while( area.left() < width() )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment