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,19 +7,18 @@
*/
#include "handler_aes_data.h"
#include <utility>
#include <CentralEffectSimulation/handler_participant.h>
//#include "main_handler.h"
#include "settings.h"
#include <QPainterPath>
#include <QtCore/QPointF>
#include <QPointF>
#include <QPolygonF>
#include <QtCore/QTimer>
#include <QTimer>
#include <QTransform>
#include <LtsUtils/dds_bitarray.h>
#include <LtsUtils/LtsUtilsCore/qpoint3d.h>
#include <LtsUtilsCore/dds_bitarray.h>
#include <LtsUtilsCore/qpoint3d.h>
#include <LtsCoordTrans/lts_coord_trans.h>
@@ -32,6 +31,7 @@ HandlerAesData::HandlerAesData(const std::shared_ptr<CentralEffectSimulation::Dd
: QObject(parent)
, m_ddsHandler(ddsHandler)
, m_handlerBuildingData(buildingDataHandler)
, m_logger(getLogger("HandlerAesData"))
{
} // end of ctor()
//-----------------------------------------------------------------------------
@@ -135,7 +135,7 @@ void HandlerAesData::onExplosionSingleChanged(const AreaEffectSimulation::Explos
// Bounding-Box-Check
// QMap<int, Footprint> m_footprints;
for (const Footprint &footprint : std::as_const(m_footprints))
for (const Footprint &footprint : qAsConst(m_footprints))
{
const QPointF impactPos(CentralEffectSimulation::geographic2Utm(data.impactPosition(), footprint.zone));
const QPolygonF polyBldgRadius({QPointF(footprint.boundingBoxPolyUtm.bottomLeft().rx() - impactRadius,
@@ -258,7 +258,7 @@ void HandlerAesData::calculateFootprint(const InfrastructureManagement::MainFoot
footprint.geoPosition = mse.geoPosition();
const QPointF utmFpPosition = CentralEffectSimulation::geographic2Utm(footprint.geoPosition, &footprint.zone);
footprint.polyUtm.reserve(poly.size());
for (const QPointF &point : std::as_const(poly))
for (const QPointF &point : qAsConst(poly))
footprint.polyUtm.push_back(utmFpPosition + point);
footprint.boundingBoxPolyUtm = footprint.polyUtm.boundingRect();
@@ -305,7 +305,7 @@ void HandlerAesData::preCalculateImpacts(const AreaEffectSimulation::TriggeredIm
}
// Bounding-Box-Check
// QMap<int, Footprint> m_footprints;
for (const Footprint &footprint : std::as_const(m_footprints))
for (const Footprint &footprint : qAsConst(m_footprints))
{
//if (boundingBoxImpact.contains(footprint.boundingBoxPolyUtm))
calculateImpacts(data, footprint);
@@ -361,7 +361,7 @@ void HandlerAesData::calculateImpacts(const AreaEffectSimulation::TriggeredImpac
BitfieldStates &bitfieldStates = m_bitfieldStatesBld[footprint.mseId];
QSet<int> &bitfieldState = bitfieldStates[data.aesItemId()];
for (int i : std::as_const(bitfieldState))
for (int i : qAsConst(bitfieldState))
DEBUG_LOG(m_logger) << "bitfieldState for " << data.aesItemId() << ": " << i;
const AreaEffectSimulation::AesItemView &aesItemView = *it;
@@ -376,7 +376,7 @@ void HandlerAesData::calculateImpacts(const AreaEffectSimulation::TriggeredImpac
continue;
const Core::GeoPosition2D &impactPosition = aesItemView.form()[bitFieldIdx];
DEBUG_LOG(m_logger) << Q_FUNC_INFO
DEBUG_LOG(m_logger) << LOGFUNCTION
<< " impactPosition: lat/lon" << impactPosition.lat() << "/" << impactPosition.lon()
<< " UTM=" << CentralEffectSimulation::debug(CentralEffectSimulation::geographic2Utm(impactPosition));
@@ -50,7 +50,6 @@ public:
AreaEffectSimulation::AesItemView itemView(const int &aesId) const { return m_aesItemViews.value(aesId); }
protected:
NGL::INGLLogger &m_logger;
void onSendCesHitInformationReply(const Core::FunctionReplyObject &reply) override final;
private slots:
@@ -105,7 +104,7 @@ private: // attributes
QHash<int, AreaEffectSimulation::AesItemView> m_aesItemViews; // key = aesItemId
QHash<int, AreaEffectSimulation::AesEffectState> m_explosionSingleState; // key = id value = state
NGL::INGLLogger &m_logger; ///< Interface to the Logging-Facility
};
@@ -7,10 +7,9 @@
*/
#include "handler_participant_gas_pipe.h"
#include <utility>
#include <QtCore/QLineF>
#include <QtCore/QTimer>
#include <QLineF>
#include <QTimer>
#include <LtsCoordTrans/lts_coord_trans.h>
@@ -203,7 +202,7 @@ void HandlerParticipantGasPipe::onParticipantPositionChanged(const CentralEffect
<< " Anzahl GasPipes=" << m_gasPipes.size();
for (const CentralEffectSimulation::AesItemViewUtm &gasPipe : std::as_const(m_gasPipes))
for (const CentralEffectSimulation::AesItemViewUtm &gasPipe : qAsConst(m_gasPipes))
{
calculateGasPipeParticipant(gasPipe, partPos);
@@ -318,7 +317,7 @@ void HandlerParticipantGasPipe::onSendCesHitReply(const Core::FunctionReplyObjec
void HandlerParticipantGasPipe::sendFtcCesHitRequestTimeout()
{
auto ftcTab = m_ddsHandler->ftcTab();
for (const TrainingAreaBase::SendCesHitRequest &hr : std::as_const(m_requestMap))
for (const TrainingAreaBase::SendCesHitRequest &hr : qAsConst(m_requestMap))
{
DEBUG_LOG(m_logger) << "sendFtcCesHitRequestTimeout: " << hr;
ftcTab->sendCesHitRequest(hr, this);
@@ -8,9 +8,9 @@
#pragma once
#include <QtCore/QObject>
#include <QtCore/QHash>
#include <QtCore/QRectF>
#include <QObject>
#include <QHash>
#include <QRectF>
#include <QPolygonF>
#include <CentralEffectSimulation/dds_handler.h>
@@ -20,7 +20,7 @@
#include <AreaEffectSimulation/aes_dtc.h>
#include <CentralEffectSimulation/handler_participant.h>
#include <QtCore/QTimer>
#include <QTimer>
// AES-Handling for participants
namespace CentralEffectSimulationGasPipes
@@ -16,7 +16,7 @@
#include <CentralEffectSimulation/dds_handler.h>
#include <DDS/DDSConnector/dds_connector.h>
#include <QtCore/QObject>
#include <QObject>
namespace CesGasPipes