Exemplo n.º 1
0
LogWriter operator<<(LogWriter w, const QStringList &strList)
{
    w.write('[');
    for (int i = 0; i < strList.size(); ++i) {
        w.write(strList.at(i));
        if (i != strList.size() - 1)
            w.write(QLatin1String(", "));
    }
    w.write(']');
    return w;
}
Exemplo n.º 2
0
LogWriter operator<<(LogWriter w, const QSet<QString> &strSet)
{
    bool firstLoop = true;
    w.write('(');
    foreach (const QString &str, strSet) {
        if (firstLoop)
            firstLoop = false;
        else
            w.write(QLatin1String(", "));
        w.write(str);
    }
    w.write(')');
    return w;
}
Exemplo n.º 3
0
LogWriter operator<<(LogWriter w, const QByteArray &byteArray)
{
    w.write(byteArray.data());
    return w;
}
Exemplo n.º 4
0
LogWriter operator<<(LogWriter w, const QString &str)
{
    w.write(str);
    return w;
}
Exemplo n.º 5
0
LogWriter operator<<(LogWriter w, const char *str)
{
    w.write(str);
    return w;
}