equal
deleted
inserted
replaced
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.setFloatingPointPrecision(QDataStream::SinglePrecision); |
86 out << *buffer << updates; |
86 |
|
87 out.writeBytes("qttraceV2", 9); |
|
88 |
|
89 uint version = 1; |
|
90 |
|
91 out << version << *buffer << updates; |
87 } |
92 } |
88 delete buffer; |
93 delete buffer; |
89 } |
94 } |
90 } |
95 } |
91 |
96 |