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,7 +7,6 @@
*/
#include "service.h"
#include <utility>
#include <QtCore/QProcess>
@@ -26,6 +25,7 @@ ServiceManagement::Service::Service(const QString &name, const QString &exe, con
, m_id(idCounter ++)
, m_licenceDonator(nullptr)
, m_prio(prio)
, m_logger(getLogger("Service"))
{}
int ServiceManagement::Service::id() const
@@ -83,7 +83,7 @@ ServiceManagement::ServiceProcess *ServiceManagement::Service::toServiceProcess(
ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromPid(qint64 pid)
{
for (ServiceProcess *currentProc : std::as_const(m_procs))
for (ServiceProcess *currentProc : qAsConst(m_procs))
{
if (currentProc->usablePid() == pid)
return currentProc;
@@ -93,7 +93,7 @@ ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromPid(qint6
ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromServiceProcId(int32_t id)
{
for (ServiceProcess *currentProc : std::as_const(m_procs))
for (ServiceProcess *currentProc : qAsConst(m_procs))
{
if (currentProc->serviceProcessId() == id)
return currentProc;
@@ -103,13 +103,13 @@ ServiceManagement::ServiceProcess *ServiceManagement::Service::procFromServicePr
void ServiceManagement::Service::stopAllProcs()
{
for (ServiceProcess *currentProc : std::as_const(m_procs))
for (ServiceProcess *currentProc : qAsConst(m_procs))
currentProc->terminate();
}
void ServiceManagement::Service::waitForStopped()
{
for (ServiceProcess *currentProc : std::as_const(m_procs))
for (ServiceProcess *currentProc : qAsConst(m_procs))
currentProc->waitForFinished(5000);
}