vlc | branch: master | Fatih Uzunoglu <[email protected]> | Fri Feb 12 00:23:35 2021 +0300| [9da7c8c4f9d2f90c151decc0ec61a6db474f850d] | committer: Pierre Lamot
qt: fix QDateTime warning when Qt 5.14 is used Signed-off-by: Pierre Lamot <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9da7c8c4f9d2f90c151decc0ec61a6db474f850d --- modules/gui/qt/dialogs/epg/EPGView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/gui/qt/dialogs/epg/EPGView.cpp b/modules/gui/qt/dialogs/epg/EPGView.cpp index 0dda924fd9..cf46c26a12 100644 --- a/modules/gui/qt/dialogs/epg/EPGView.cpp +++ b/modules/gui/qt/dialogs/epg/EPGView.cpp @@ -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() ) { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
