From 3629a4e071543a7086983842354f9a8115c559df Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 27 Jan 2021 21:14:11 +0000 Subject: [PATCH] Qt <5.8 compatibility --- widgets/mainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 7ddeee776..0c94507b8 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -7249,7 +7249,12 @@ void MainWindow::rigFailure (QString const& reason) { if (m_splash && m_splash->isVisible ()) m_splash->hide (); m_rigErrorMessageBox.setDetailedText (reason + "\n\nTimestamp: " - + QDateTime::currentDateTimeUtc ().toString (Qt::ISODateWithMs)); +#if QT_VERSION >= QT_VERSION_CHECK (5, 8, 0) + + QDateTime::currentDateTimeUtc ().toString (Qt::ISODateWithMs) +#else + + QDateTime::currentDateTimeUtc ().toString ("yyyy-MM-ddTHH:mm:ss.zzzZ") +#endif + ); // don't call slot functions directly to avoid recursion m_rigErrorMessageBox.exec ();