Update datastream converter to use Qt_6_0 instead of Qt_5_0

It was added in 5.12 and we've had a few upates since then.

Pick-to: 6.6 6.5
Task-number: QTBUG-111228
Change-Id: Iacb5368d4baa7d25f981bb0b8bd8d68b5461e17d
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
Edward Welbourne 2023-08-29 19:31:13 +02:00
parent 670f66eed3
commit 833ed75b65

View File

@ -9,7 +9,7 @@
static const char dataStreamOptionHelp[] =
"byteorder=host|big|little Byte order to use.\n"
"version=<n> QDataStream version (default: Qt 5.0).\n"
"version=<n> QDataStream version (default: Qt 6.0).\n"
;
static const char signature[] = "qds";
@ -177,7 +177,7 @@ QVariant DataStreamConverter::loadFile(QIODevice *f, Converter *&outputConverter
void DataStreamConverter::saveFile(QIODevice *f, const QVariant &contents, const QStringList &options)
{
QDataStream::Version version = QDataStream::Qt_5_0;
QDataStream::Version version = QDataStream::Qt_6_0;
auto order = QDataStream::ByteOrder(QSysInfo::ByteOrder);
for (const QString &option : options) {
const QStringList pair = option.split('=');