Qt <5.8 compatibility

This commit is contained in:
Bill Somerville 2021-01-27 21:14:11 +00:00
parent 21b57dbe6f
commit 3629a4e071
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 6 additions and 1 deletions

View File

@ -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 ();