TetraIF migration and Unittest Implementation for it
Entire-Checkpoint: 14d1fef0cf36
This commit is contained in:
1 parent
a86f9b5bac
commit
ba212f9dce
78 files changed
+1611
-640
No files matched your search
@@ -100,7 +100,7 @@ void PrtCnvSocketThread::createNewSocket()
|
||||
|
||||
connect(m_Socket, &QTcpSocket::connected, this, &PrtCnvSocketThread::connected, Qt::QueuedConnection);
|
||||
connect(m_Socket, &QTcpSocket::disconnected, this, &PrtCnvSocketThread::disconnected, Qt::QueuedConnection);
|
||||
connect(m_Socket, QOverload<QAbstractSocket::SocketError>::of(&QTcpSocket::error), this, &PrtCnvSocketThread::error, Qt::QueuedConnection);
|
||||
connect(m_Socket, &QTcpSocket::errorOccurred, this, &PrtCnvSocketThread::error, Qt::QueuedConnection);
|
||||
connect(m_Socket, &QTcpSocket::hostFound, this, &PrtCnvSocketThread::hostFound, Qt::QueuedConnection);
|
||||
connect(m_Socket, &QTcpSocket::stateChanged, this, &PrtCnvSocketThread::stateChanged);
|
||||
connect(m_Socket, &QTcpSocket::readyRead, this, &PrtCnvSocketThread::readyRead, Qt::QueuedConnection);
|
||||
@@ -364,8 +364,8 @@ void PrtCnvSocketThread::readHostAdresses()
|
||||
uint16_t port = m_Config->getInteger(getName(), QStringLiteral("Port"), 4934);
|
||||
m_hostAdresses.push_back(qMakePair(host, port));
|
||||
for (int i = 1; i < 10; ++i) {
|
||||
const QString hostName = QLatin1String("HostName") + QString::number(i);
|
||||
const QString portName = QLatin1String("Port") + QString::number(i);
|
||||
const QString hostName = QStringLiteral("HostName") + QString::number(i);
|
||||
const QString portName = QStringLiteral("Port") + QString::number(i);
|
||||
host = m_Config->getString(getName(), hostName, QString());
|
||||
port = m_Config->getInteger(getName(), portName, 0);
|
||||
if (host.isEmpty() || port == 0)
|
||||
|
||||
Reference in new issue
Block a user