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,23 +7,22 @@
*/
#include "handler_pdf_download.h"
#include <utility>
#include "WebSocketInterface/Messages/reply_message.h"
#include <QtCore/QUuid>
#include <QUuid>
#include "pdf_downloader.h"
#include <ngldb/db_service_handler.h>
#include <nglsettings/nglsettings_connections.h>
#include <nglsettings/nglsettings_settings.h>
#include <ngldb/dbtransaction.h>
#include <ngldb/dbconnection.h>
#include <ngldb_export.h>
#include <ngldb/ngldb_export.h>
#include <ngldb/nsqlquery.h>
#include <ngltools/ngltools_filesystem.h>
#include "main_handler.h"
#include "settings.h"
#include <QtCore/QFileInfo>
#include <QtCore/QDir>
#include <QFileInfo>
#include <QDir>
namespace OcBaseDownload
{
@@ -42,6 +41,7 @@ HandlerPdfDownload::HandlerPdfDownload(MainHandler *mainHandler, QObject *parent
, m_currentPort(NGL::Connections::port(NGL::Connections::eConnection::SCM_WEBSOCKET))
, m_currentMode(Mode::PORT_REQUEST)
, m_downloader(nullptr)
, m_logger(getLogger("HandlerPdfDownload"))
{
}
@@ -172,7 +172,7 @@ void HandlerPdfDownload::onStartPdfDownloadRequest(const rti::core::SampleIdenti
return false;
};
QVector<pdfInfo> pdfInfoVec;
for (const auto &current : std::as_const(m_pdfData))
for (const auto &current : qAsConst(m_pdfData))
{
if (!containsId(request.documentIds(), current.id))
continue;
@@ -200,7 +200,7 @@ void HandlerPdfDownload::onStartPdfDownloadRequest(const rti::core::SampleIdenti
void HandlerPdfDownload::onOcPdfDownloadRequest(const rti::core::SampleIdentity &cookie, const OcPdfDownloadRequest &request)
{
DEBUG_LOG(m_logger) <<Q_FUNC_INFO<<" START OcPdfDownloadRequest" ;
DEBUG_LOG(m_logger) <<LOGFUNCTION<<" START OcPdfDownloadRequest" ;
m_ocPdfDownloadCookie = cookie;
m_ocPdfDownloadReply = Core::FunctionReply();