[vlc-commits] qt: fix QDateTime warning when Qt 5.14 is used
Fatih Uzunoglu
git at videolan.org
Wed Feb 17 09:31:49 UTC 2021
vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | 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 <pierre at videolabs.io>
> 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() )
{
More information about the vlc-commits
mailing list