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

@@ -6,15 +6,14 @@
*/
#include "icons.h"
#include <utility>
#include "polygons.h"
#include <AreaEffectSimulation/aes.hpp>
#include <LtsCoordTrans/lts_coord_trans.h>
#include <QtGui/QGuiApplication>
#include <QtGui/QIcon>
#include <QtGui/QPainter>
#include <QtGui/QPixmap>
#include <QGuiApplication>
#include <QIcon>
#include <QPainter>
#include <QPixmap>
#include <QTransform>
namespace AreaEffectSimulation
@@ -55,7 +54,7 @@ static QPixmap pixmapFromPolygons(const QVector<PolygonData> &datas,
for (const PolygonData &data : datas)
{
polyUtm.clear();
for (const QPointF &point : std::as_const(data.poly))
for (const QPointF &point : qAsConst(data.poly))
{
LtsCoordTrans::UtmCoordinate pointUtm = LtsCoordTrans::UtmCoordinate::fromGeographic(point, zone);
polyUtm << QPointF(pointUtm.x, pointUtm.y);
@@ -67,7 +66,7 @@ static QPixmap pixmapFromPolygons(const QVector<PolygonData> &datas,
bounding.reserve(4 * datas.size());
// Does not matter, how the total polygon looks as we just need the bounding rect.
// << is cheaper than .united()
for (const QPolygonF &polyUtmLocal : std::as_const(polysUtm))
for (const QPolygonF &polyUtmLocal : qAsConst(polysUtm))
bounding << polyUtmLocal;
// center to center / Todo:: Does it always work?
@@ -90,7 +89,7 @@ static QPixmap pixmapFromPolygons(const QVector<PolygonData> &datas,
QPainter p(&pix);
int i = 0;
for (const PolygonData &d : std::as_const(datas))
for (const PolygonData &d : qAsConst(datas))
{
QPolygonF mPoly = mTrans.map(polysUtm.at(i++));
mPoly = mScale.map(mPoly);