Mercurial > hg > sonic-visualiser
diff main/OSCHandler.cpp @ 2524:1891812e44b2
Another too-new Qt API
author | Chris Cannam |
---|---|
date | Wed, 29 Apr 2020 15:06:53 +0100 |
parents | e9506f77388d |
children | c7554741550f |
line wrap: on
line diff
--- a/main/OSCHandler.cpp Wed Apr 29 14:46:53 2020 +0100 +++ b/main/OSCHandler.cpp Wed Apr 29 15:06:53 2020 +0100 @@ -36,7 +36,11 @@ #include <QTime> #include <QElapsedTimer> +#if (QT_VERSION >= 0x050600) #define NOW (QTime::currentTime().toString(Qt::ISODateWithMs)) +#else +#define NOW (QTime::currentTime().toString(Qt::ISODate)) +#endif void MainWindow::handleOSCMessage(const OSCMessage &message)