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

@@ -7,20 +7,21 @@
*/
#include "handler_dynamic_participant_data.h"
#include <utility>
#include "rep_db.h"
#include "settings.h"
#include <ngldb/nsqlquery.h>
#include <LtsCoordTrans/lts_coord_trans.h>
#include <QtCore/QJsonDocument>
#include <QJsonDocument>
#include <ProjectDataManagement/pdm_translation.h>
using namespace ReportManagement;
//-----------------------------------------------------------------------------
HandlerDynamicParticipantData::HandlerDynamicParticipantData(const std::shared_ptr<DdsHandler> &ddsHandler,
const std::shared_ptr<DatabaseInterface> &db) : m_ddsHandler(ddsHandler)
, m_db(db),
m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
const std::shared_ptr<DatabaseInterface> &db)
: m_ddsHandler(ddsHandler)
, m_db(db)
, m_logger(getLogger("HandlerDynamicParticipantData"))
{
} // end of ctor()
//-----------------------------------------------------------------------------
@@ -914,7 +915,7 @@ void HandlerDynamicParticipantData::onDynamicParticipantDataChanged(const Partic
}
// Has Turm/Wanne Map been filled?
for (Database::RepChargeResupplyData turmWanneCrData : std::as_const(turmWanneMap))
for (Database::RepChargeResupplyData turmWanneCrData : qAsConst(turmWanneMap))
{
QPair<int, int> pair;
pair.first = turmWanneCrData.gearTypeId;
@@ -973,7 +974,7 @@ void HandlerDynamicParticipantData::onDynamicParticipantDataChanged(const Partic
DEBUG_LOG(m_logger) << "Qualification = " << sanData.qualification;
for ( ParticipantManagement::SanitationMaterial sanMat : std::as_const(data.sanitationMaterialStock()))
for ( ParticipantManagement::SanitationMaterial sanMat : qAsConst(data.sanitationMaterialStock()))
{
sanData.materialId = sanMat.materialId();
sanData.materialAmount = sanMat.materialCount();
@@ -12,7 +12,7 @@
#include "rep_db.h"
#include "logger.h"
#include <ParticipantManagement/ppm.hpp>
#include <ParticipantManagement/ppm_dtc.h>
#include <AreaEffectSimulation/aes_dtc.h>
#ifdef GUEZ_MODE
#include <GuezIedManagement/gim_dtc.h>
@@ -21,8 +21,8 @@
#include <Proxies/Buildings/bld_dtc.h>
#include <Proxies/Buildings/bld.hpp>
#include <QtCore/QObject>
#include <QtCore/QMap>
#include <QObject>
#include <QMap>
namespace ReportManagement
{
@@ -15,11 +15,13 @@
namespace ReportManagement
{
MainHandler::MainHandler(QObject *parent) : QObject(parent)
MainHandler::MainHandler(QObject *parent)
: QObject(parent)
, m_ddsHandler(nullptr)
, m_dbHandler(nullptr)
, m_dynPartData(nullptr),
m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {}
, m_dynPartData(nullptr)
, m_logger(getLogger("MainHandlerAnalyzer"))
{}
MainHandler::~MainHandler()
{
@@ -6,7 +6,7 @@
*/
#pragma once
#include <QtCore/QObject>
#include <QObject>
#include "dds_handler.h"
#include "handler_dynamic_participant_data.h"
@@ -32,10 +32,10 @@ public:
private:
NGL::INGLLogger &m_logger;
std::shared_ptr<DdsHandler> m_ddsHandler;
std::shared_ptr<DbHandler> m_dbHandler;
std::shared_ptr<HandlerDynamicParticipantData> m_dynPartData;
LOGGER_T m_logger;
};
} // namespace ReportManagement