Lts/Services: finalize Qt6/C++17 migration cleanup

Remove deprecated Qt5 patterns remaining in Services:

- Replace remaining SIGNAL/SLOT string syntax with function pointer syntax
  (NmeaManagement/socket_handler.cpp, AudioVideoManagement/ModuleTests/mvs_tests.cpp)

- Remove Qt::UniqueConnection (deprecated in Qt6, default behavior) from
  19 files across AES, CES plugins, and cross-services (47 occurrences)

- Remove umbrella #include <QtCore> from fire_automaton.h and
  aes_test_fire_automaton.h (specific includes suffice)

25 files changed, 74 insertions(+), 81 deletions(-)
This commit is contained in:
berrux-dev committed 2026-09-21 06:43:28 +00:00
1 parent 29002f2a48
commit 5485a90385
25 files changed
+74 -81

No files matched your search

@@ -29,8 +29,7 @@ SocketHandler::SocketHandler(const std::shared_ptr<DdsHandler> &ddsHandler,
m_reconnectTimer = new QTimer(this);
// setup signal and slot
connect(m_reconnectTimer, SIGNAL(timeout()),
this, SLOT(reconnectTimerSlot()));
connect(m_reconnectTimer, &QTimer::timeout, this, &SocketHandler::reconnectTimerSlot);
}
@@ -39,11 +38,11 @@ void SocketHandler::init(QString nmeaHost, int nmeaPort)
m_nmeaHost = nmeaHost;
m_nmeaPort = nmeaPort;
socket = new QUdpSocket(this);
connect(socket, SIGNAL(connected()), this, SLOT(connected()));
connect(socket, SIGNAL(disconnected()), this, SLOT(disconnected()));
connect(socket, SIGNAL(readyRead()), this, SLOT(readyRead()));
connect(socket, &QUdpSocket::connected, this, &SocketHandler::connected);
connect(socket, &QUdpSocket::disconnected, this, &SocketHandler::disconnected);
connect(socket, &QUdpSocket::readyRead, this, &SocketHandler::readyRead);
connect(socket, SIGNAL(bytesWritten(qint64)), this, SLOT(bytesWritten(qint64)));
connect(socket, qOverload<qint64>(&QUdpSocket::bytesWritten), this, &SocketHandler::bytesWritten);
INFO_LOG(m_logger) << "Connecting,..";
INFO_LOG(m_logger) << nmeaHost << " port: " << nmeaPort;