From b37e419fc7c76f3662565b38d3d635f13fddeb73 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 19 Aug 2020 12:32:27 +0100 Subject: [PATCH] Qt 5.15 compatibility --- Network/MessageClient.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Network/MessageClient.cpp b/Network/MessageClient.cpp index 1d571a5dd..3c208fd3f 100644 --- a/Network/MessageClient.cpp +++ b/Network/MessageClient.cpp @@ -190,7 +190,13 @@ void MessageClient::impl::parse_message (QByteArray const& msg) quint8 modifiers {0}; in >> time >> snr >> delta_time >> delta_frequency >> mode >> message >> low_confidence >> modifiers; - TRACE_UDP ("Reply: time:" << time << "snr:" << snr << "dt:" << delta_time << "df:" << delta_frequency << "mode:" << mode << "message:" << message << "low confidence:" << low_confidence << "modifiers: 0x" << hex << modifiers); + TRACE_UDP ("Reply: time:" << time << "snr:" << snr << "dt:" << delta_time << "df:" << delta_frequency << "mode:" << mode << "message:" << message << "low confidence:" << low_confidence << "modifiers: 0x" +#if QT_VERSION >= QT_VERSION_CHECK (5, 15, 0) + << Qt::hex +#else + << hex +#endif + << modifiers); if (check_status (in) != Fail) { Q_EMIT self_->reply (time, snr, delta_time, delta_frequency