[vlc-devel] [PATCH 07/15] qt: fix QDateTime warning when Qt 5.14 is used
Fatih Uzunoglu
fuzun54 at outlook.com
Thu Feb 11 21:23:35 UTC 2021
---
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() )
{
--
2.27.0
More information about the vlc-devel
mailing list