More Debian 9 backwards compatibility changes (Qt 5.7)

This commit is contained in:
Bill Somerville 2020-11-20 21:05:59 +00:00
parent b834645bf7
commit ed465e11f2
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 7 additions and 1 deletions

View File

@ -76,7 +76,13 @@ namespace
switch (static_cast<QMetaType::Type> (v.type ()))
{
case QMetaType::QByteArray:
os << "0x" << v.toByteArray ().toHex (':').toStdString ();
os << "0x"
#if QT_VERSION >= QT_VERSION_CHECK (5, 9, 0)
<< v.toByteArray ().toHex (':').toStdString ()
#else
<< v.toByteArray ().toHex ().toStdString ()
#endif
;
break;
case QMetaType::QBitArray: