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:
1 parent
c143ff8a4f
commit
d5af8b9764
1244 files changed
+4266
-4633
No files matched your search
+5
-5
@@ -8,7 +8,6 @@
|
||||
*/
|
||||
|
||||
#include "cnr_tvc_profile_handler.h"
|
||||
#include <utility>
|
||||
#include "cnr_handler.h"
|
||||
#include "tvc_handler.h"
|
||||
#include <AudioVideoManagement/avm_dts.h>
|
||||
@@ -50,7 +49,7 @@ CnrTvcProfile toDds(const Database::AvmCnrTvcProfile &circuitContainerDb, T circ
|
||||
|
||||
CnrTvcProfile circuitContainerDds(circuitContainerDb.id, circuitContainerDb.operatorId, circuitContainerDb.exerciseId, {});
|
||||
circuitContainerDds.data().reserve(circuitsDb.size());
|
||||
for (const auto ¤tCircuitDb : std::as_const(circuitsDb))
|
||||
for (const auto ¤tCircuitDb : qAsConst(circuitsDb))
|
||||
circuitContainerDds.data().push_back(toDds(currentCircuitDb));
|
||||
return circuitContainerDds;
|
||||
}
|
||||
@@ -117,6 +116,7 @@ CnrTvcProfileHandler::CnrTvcProfileHandler(DatabaseInterface *db, Interface::Dts
|
||||
, m_fts(fts)
|
||||
, m_cnrHandler(cnrHandler)
|
||||
, m_tvcHandler(tvcHandler)
|
||||
, m_logger(getLogger("CnrTvcProfileHandler"))
|
||||
{
|
||||
Q_ASSERT(db);
|
||||
Q_ASSERT(dts);
|
||||
@@ -148,7 +148,7 @@ bool CnrTvcProfileHandler::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const auto ¤tCircuitContainer: std::as_const(circuitContainersDb))
|
||||
for (const auto ¤tCircuitContainer: qAsConst(circuitContainersDb))
|
||||
status &= collectAndPublish(currentCircuitContainer);
|
||||
|
||||
return status;
|
||||
@@ -570,7 +570,7 @@ void CnrTvcProfileHandler::onConfigChanged(int32_t configId, RadioSystem type)
|
||||
|
||||
// Find all CnrTvcProfiles where this config is referenced and reload those.
|
||||
// Hint: reloading might modify m_cache. Thus the reloading is done in a separate loop.
|
||||
for (const auto &profile : std::as_const(m_cache))
|
||||
for (const auto &profile : qAsConst(m_cache))
|
||||
for (const auto &data : profile.data())
|
||||
if (data.radioSystemId() == type && data.radioCircuitId() == configId)
|
||||
{
|
||||
@@ -578,7 +578,7 @@ void CnrTvcProfileHandler::onConfigChanged(int32_t configId, RadioSystem type)
|
||||
break;
|
||||
}
|
||||
|
||||
for (const auto &profile : std::as_const(toBeReloaded))
|
||||
for (const auto &profile : qAsConst(toBeReloaded))
|
||||
{
|
||||
Database::AvmCnrTvcProfile profileDb = toDb(profile);
|
||||
const bool isReload = true;
|
||||
|
||||
Reference in new issue
Block a user