From: Dmitry Shachnev <mitya57@debian.org>
Date: Sun, 29 Nov 2020 14:07:12 +0100
Subject: Use QDate::startOfDay() instead of deprecated QDateTime(const
 QDate&)

---
 examples/plots/mainwindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/plots/mainwindow.cpp b/examples/plots/mainwindow.cpp
index 0372254..ac716f3 100644
--- a/examples/plots/mainwindow.cpp
+++ b/examples/plots/mainwindow.cpp
@@ -1295,7 +1295,7 @@ void MainWindow::setupFinancialDemo(QCustomPlot *customPlot)
   // generate two sets of random walk data (one for candlestick and one for ohlc chart):
   int n = 500;
   QVector<double> time(n), value1(n), value2(n);
-  QDateTime start = QDateTime(QDate(2014, 6, 11));
+  QDateTime start = QDate(2014, 6, 11).startOfDay();
   start.setTimeSpec(Qt::UTC);
   double startTime = start.toTime_t();
   double binSize = 3600*24; // bin data in 1 day intervals
