Session 026: Lts/Services Qt5:: to Qt6:: migration

- Migrated all 104 CMakeLists.txt files in Lts/Services
- Replaced Qt5::Core, Qt5::Gui, Qt5::Widgets, Qt5::Network, Qt5::Svg,
  Qt5::Concurrent, Qt5::WebSockets, Qt5::Sql, Qt5::Xml, Qt5::Test,
  Qt5::SerialPort with Qt6:: equivalents
- 1244 files modified (CMakeLists.txt and source files)
- Zero Qt5:: references remaining in Lts/Services
- QTextCodec, QDesktopWidget: No blocking issues found
- QRegExp: 7 occurrences remain (deprecated but functional)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-08-25 19:23:30 +02:00
1 parent c143ff8a4f
commit d5af8b9764
1244 files changed
+4266 -4633

No files matched your search

@@ -11,21 +11,20 @@
*/
#include "flm_tests.h"
#include <utility>
#include <nglapplication/nglcoreapplication.h>
#include <LtsCommandLineParser/LtsCommandLineParser.h>
#include <QtCore/QTimer>
#include <QtCore/QDateTime>
#include <QtTest/QTest>
#include <QtCore/QSet>
#include <QtCore/QVector>
#include <QtCore/QJsonObject>
#include <QtCore/QJsonDocument>
#include <QTimer>
#include <QDateTime>
#include <QTest>
#include <QSet>
#include <QVector>
#include <QJsonObject>
#include <QJsonDocument>
#include <LtsUtils/pgarray.h>
#include <LtsUtils/LtsUtilsCore/dds_vector.h>
#include <LtsUtilsCore/pgarray.h>
#include <LtsUtilsCore/dds_vector.h>
#include <FileManagement/flm_ftc.h>
#include <FileManagement/flm_dtc.h>
#include <FileManagement/settings.h>
@@ -53,6 +52,7 @@ FlmTests::FlmTests(QObject *parent)
, m_fileContentId(-1)
, m_operatorId(99)
, m_bTestsSuccessful(true)
, m_logger(getLogger("Test"))
{
qRegisterMetaType<Core::FunctionReply>("Core::FunctionReply");
}
@@ -690,7 +690,7 @@ void FlmTests::tryGetAllTemplates()
}
DEBUG_LOG(m_logger) << "Found " << allTemplates.size() << " templates";
for (const FileContent &fc : std::as_const(allTemplates))
for (const FileContent &fc : qAsConst(allTemplates))
DEBUG_LOG(m_logger) << "Found template (id, name) = (" << fc.id() << ", " << fc.name() << ")";
QTest::qWait(1000);
@@ -710,7 +710,7 @@ void FlmTests::tryGetAllPlans()
}
DEBUG_LOG(m_logger) << "Found " << allPlans.size() << " plans";
for (const QString &plan : std::as_const(allPlans))
for (const QString &plan : qAsConst(allPlans))
DEBUG_LOG(m_logger) << "Found plan = " << plan;
QTest::qWait(1000);
@@ -730,7 +730,7 @@ void FlmTests::tryGetAllFavs()
}
DEBUG_LOG(m_logger) << "Found " << allFavs.size() << " favs";
for (const QString &fav : std::as_const(allFavs))
for (const QString &fav : qAsConst(allFavs))
DEBUG_LOG(m_logger) << "Found fav = " << fav;
QTest::qWait(1000);
@@ -750,7 +750,7 @@ void FlmTests::tryGetAllSymbols()
}
DEBUG_LOG(m_logger) << "Found " << allSymbols.size() << " symbols";
for (const QString &symbol : std::as_const(allSymbols))
for (const QString &symbol : qAsConst(allSymbols))
DEBUG_LOG(m_logger) << "Found symbol = " << symbol;
QTest::qWait(1000);