Subversion Repositories Projects

Rev

Rev 715 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 715 Rev 801
Line 139... Line 139...
139
}
139
}
140
140
141
void Input_TCP::slot_TCP_ReadLine()
141
void Input_TCP::slot_TCP_ReadLine()
142
{
142
{
143
//    QString t_Data = QString(TCP_Socket->readLine(TCP_Socket->bytesAvailable())).remove(QChar('\n'));
143
//    QString t_Data = QString(TCP_Socket->readLine(TCP_Socket->bytesAvailable())).remove(QChar('\n'));
144
    QString t_Data = s_Buffer + QString(TCP_Socket->readAll());
144
    QString t_Data = s_Buffer + QString(TCP_Socket->readAll()).remove(QChar('\n'));
145
145
146
    s_Buffer = "";
146
    s_Buffer = "";
147
147
-
 
148
    t_Data = t_Data.replace('\r', "\r\n");
-
 
149
148
    QStringList l_Data;
150
    QStringList l_Data;
149
    l_Data = t_Data.split('\n');
151
    l_Data = t_Data.split('\n');
150
152
151
    for (int z = 0; z < l_Data.count(); z++)
153
    for (int z = 0; z < l_Data.count(); z++)
152
    {
154
    {