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,12 +7,11 @@
*/
#include "handler_xxx_xxx.h"
#include <utility>
#include "object_xxx_xxx.h"
#include "yyy_db.h"
#include "db_handler.h"
#include <QtCore/QCoreApplication>
#include <QCoreApplication>
#include <NGLLogger/NGLLoggerBootstrap.h>
namespace YyyYyyYyy
@@ -20,10 +19,12 @@ namespace YyyYyyYyy
HandlerXxx::HandlerXxx(const std::shared_ptr<DdsHandler> &ddsHandler,
const std::shared_ptr<DbHandler> &dbHandler,
QObject *parent) : QObject(parent)
QObject *parent)
: QObject(parent)
, m_ddsHandler(ddsHandler)
, m_dbHandler(dbHandler),
m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {}
, m_dbHandler(dbHandler)
, m_logger(getLogger("HandlerXxx"))
{}
HandlerXxx::~HandlerXxx()
{}
@@ -39,7 +40,7 @@ bool HandlerXxx::init()
}
// create languageHmi objects
for (const Database::YyyXxx &data : std::as_const(dataVec))
for (const Database::YyyXxx &data : qAsConst(dataVec))
{
ObjectXxx *ifs(new ObjectXxx(m_ddsHandler, m_dbHandler, this));
Core::FunctionReplyObject ret = ifs->createObject(data);
@@ -7,7 +7,7 @@
*/
#pragma once
#include <QtCore/QMap>
#include <QMap>
#include "dds_handler.h"
#include "logger.h"
@@ -29,11 +29,11 @@ public:
private:
NGL::INGLLogger &m_logger;
private:
NGL::INGLLogger &m_logger;
QMap<int, ObjectXxx*> m_xxxObjMap;
std::shared_ptr<DdsHandler> m_ddsHandler;
std::shared_ptr<DbHandler> m_dbHandler;
NGL::INGLLogger &m_logger;
};
}
@@ -20,6 +20,7 @@ namespace YyyYyyYyy
: QObject(parent)
, m_ddsHandler(ddsHandler)
, m_dbHandler(dbHandler)
, m_logger(getLogger("ObjectXxx"))
{
}
@@ -6,11 +6,11 @@
*/
#pragma once
#include <QtCore/QObject>
#include <QObject>
#include "dds_handler.h"
#include "logger.h"
#include <Core/core_types.h>
#include <DDS/Core/function_reply_object.h>
// Generated
#include <YyyYyyYyy/yyy_db.h>
@@ -39,10 +39,11 @@ namespace YyyYyyYyy
void onPublishData();
private:
NGL::INGLLogger &m_logger;
std::shared_ptr<DdsHandler> m_ddsHandler;
std::shared_ptr<DbHandler> m_dbHandler;
Database::YyyXxx m_data;
NGL::INGLLogger &m_logger;
};
}