Subversion Repositories Projects

Rev

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

Rev 801 Rev 813
Line 49... Line 49...
49
    QMK_Dir = tmp.left(tmp.lastIndexOf("\\"));
49
    QMK_Dir = tmp.left(tmp.lastIndexOf("\\"));
50
#else
50
#else
51
    QMK_Dir = tmp.left(tmp.lastIndexOf("/"));
51
    QMK_Dir = tmp.left(tmp.lastIndexOf("/"));
52
#endif
52
#endif
Line 53... Line 53...
53
 
53
 
54
    qDebug(QMK_Dir.toLatin1().data());
54
    qDebug() << QMK_Dir;
Line 55... Line 55...
55
}
55
}
56
 
56
 
57
// Grafische Oberfläche initialisieren
57
// Grafische Oberfläche initialisieren
Line 920... Line 920...
920
    {
920
    {
921
        int ID = Socket->property("ID").toUInt();
921
        int ID = Socket->property("ID").toUInt();
922
        ID = ID;
922
        ID = ID;
Line 923... Line 923...
923
 
923
 
-
 
924
//        QString t_Data = QString(TCP_Socket->readLine(TCP_Socket->bytesAvailable())).remove(QChar('\n'));
-
 
925
        QString newData = QString(Socket->readAll());
-
 
926
        qDebug() << newData;
924
//        QString t_Data = QString(TCP_Socket->readLine(TCP_Socket->bytesAvailable())).remove(QChar('\n'));
927
 
925
        QString t_Data = s_Buffer + QString(Socket->readAll()).remove(QChar('\n'));
928
        QString t_Data = s_Buffer + newData.remove(QChar('\n'));
Line 926... Line 929...
926
        s_Buffer = "";
929
        s_Buffer = "";
Line 927... Line 930...
927
 
930
 
Line 928... Line 931...
928
        t_Data = t_Data.replace('\r', "\r\n");
931
        t_Data = t_Data.replace('\r', "\r\n");
929
 
932
 
930
        QStringList l_Data = t_Data.split('\n');
933
        QStringList l_Data = t_Data.split('\n', QString::SkipEmptyParts);
931
 
934
 
Line 949... Line 952...
949
                }
952
                }
950
            }
953
            }
951
            else
954
            else
952
            {   if (l_Data[z].length() > 1)
955
            {   if (l_Data[z].length() > 1)
953
                {
956
                {
954
                    qDebug(QString("Ohne Ende: " + l_Data[z]).toLatin1().data());
957
                    qDebug() << "Ohne Ende: " << new QString(l_Data[z]);
955
                    s_Buffer = s_Buffer + l_Data[z];
958
                    s_Buffer = s_Buffer + l_Data[z];
956
                }
959
                }
957
            }
960
            }
Line 958... Line 961...
958
 
961