Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
2523:146403079bec | 2524:1891812e44b2 |
---|---|
34 | 34 |
35 #include <QFileInfo> | 35 #include <QFileInfo> |
36 #include <QTime> | 36 #include <QTime> |
37 #include <QElapsedTimer> | 37 #include <QElapsedTimer> |
38 | 38 |
39 #if (QT_VERSION >= 0x050600) | |
39 #define NOW (QTime::currentTime().toString(Qt::ISODateWithMs)) | 40 #define NOW (QTime::currentTime().toString(Qt::ISODateWithMs)) |
41 #else | |
42 #define NOW (QTime::currentTime().toString(Qt::ISODate)) | |
43 #endif | |
40 | 44 |
41 void | 45 void |
42 MainWindow::handleOSCMessage(const OSCMessage &message) | 46 MainWindow::handleOSCMessage(const OSCMessage &message) |
43 { | 47 { |
44 QElapsedTimer timer; | 48 QElapsedTimer timer; |