Qt6 migration fixes: RTI DDS alias targets, ErrorMessage namespace, DDS header include path

This commit is contained in:
torsten committed 2026-08-27 09:02:26 +02:00
1 parent 8050bca545
commit bb1447c858
18635 files changed
+2466913 -906310

No files matched your search

@@ -6,11 +6,12 @@
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonObject>
#include <QtCore/QJsonArray>
#include <QUrl>
#include <QtCore/QUrl>
#include <QUrlQuery>
#include <QtCore/QCoreApplication>
#include <QtCore/QRandomGenerator>
#include <QtCore/QString>
#include <QStringList>
#include <QtCore/QStringList>
#include <QtCore/QDebug>
@@ -18,16 +19,13 @@ Server::Server()
: QObject(nullptr)
, m_server(new QWebSocketServer(QString(), QWebSocketServer::NonSecureMode, this))
{
qsrand(time(nullptr));
QRandomGenerator::global()->seed(time(nullptr));
}
qint64 randomBetween(qint64 min, qint64 max)
{
qint64 val = qrand(); // qrand returns int (32 bit)
val <<= 32;
val |= qrand();
return val % (max - min) + min;
return QRandomGenerator::global()->bounded(min, max);
}
@@ -156,7 +154,7 @@ bool Server::init(quint16 port)
if (!k)
limit = -1;
QStringList typesStringList(typesString.split(QLatin1Char(','), QString::SkipEmptyParts));
QStringList typesStringList(typesString.split(QLatin1Char(','), Qt::SkipEmptyParts));
qWarning() << "new request" << from << to << typesString << "limit" << limit;
@@ -200,7 +198,7 @@ bool Server::init(quint16 port)
//int eventTypeId = eventObj[QStringLiteral("eventTypeId")].toInt(-1);
//qint64 startTime = eventObj[QStringLiteral("sampleTime")].toDouble(-1);
eObj[QStringLiteral("id")] = e.m_id;
eObj[QStringLiteral("id")] = e.id;
eObj[QStringLiteral("eventTypeId")] = e.type;
eObj[QStringLiteral("partyId")] = e.partyId;
eObj[QStringLiteral("sampleTime")] = e.time;