更新代码

This commit is contained in:
feiyangqingyun
2023-10-17 11:32:22 +08:00
parent f21dfb4776
commit d97b900115
48 changed files with 4918 additions and 3316 deletions

View File

@@ -1,6 +1,6 @@
#include "tcpserver2.h"
#include "quihelper.h"
#include "quihelperdata.h"
#include "qthelper.h"
#include "qthelperdata.h"
TcpClient2::TcpClient2(QObject *parent) : QTcpSocket(parent)
{
@@ -60,7 +60,7 @@ void TcpClient2::readData()
QString buffer;
if (AppConfig::HexData2) {
buffer = QUIHelperData::byteArrayToHexStr(data);
buffer = QtHelperData::byteArrayToHexStr(data);
} else {
buffer = QString(data);
}
@@ -72,7 +72,7 @@ void TcpClient2::sendData(const QString &data)
{
QByteArray buffer;
if (AppConfig::HexData2) {
buffer = QUIHelperData::hexStrToByteArray(data);
buffer = QtHelperData::hexStrToByteArray(data);
} else {
buffer = data.toLatin1();
}