src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    80 {
    80 {
    81     if (buffer) {
    81     if (buffer) {
    82         QFile outputFile(QString(QLatin1String("qtgraphics-%0.trace")).arg(winId));
    82         QFile outputFile(QString(QLatin1String("qtgraphics-%0.trace")).arg(winId));
    83         if (outputFile.open(QIODevice::WriteOnly)) {
    83         if (outputFile.open(QIODevice::WriteOnly)) {
    84             QDataStream out(&outputFile);
    84             QDataStream out(&outputFile);
       
    85             out.writeBytes("qttrace", 7);
    85             out << *buffer << updates;
    86             out << *buffer << updates;
    86         }
    87         }
    87         delete buffer;
    88         delete buffer;
    88     }
    89     }
    89 }
    90 }