summaryrefslogtreecommitdiffstats
path: root/src/plugins/graphicssystems
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-09 06:58:56 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-09 09:14:08 (GMT)
commit9c6e3590da6c49d055d452b08de0e51b0b77f1c4 (patch)
tree97c61f690a67d7dd1b25b45be933c53575f710e4 /src/plugins/graphicssystems
parentabe04b845ea19110dbbc06ba443fe1bf6a29ee92 (diff)
downloadQt-9c6e3590da6c49d055d452b08de0e51b0b77f1c4.zip
Qt-9c6e3590da6c49d055d452b08de0e51b0b77f1c4.tar.gz
Qt-9c6e3590da6c49d055d452b08de0e51b0b77f1c4.tar.bz2
Fixed up qttracereplay and trace graphicsystem a bit.
- Added "qttrace" to binary file, making it possible to do a sanity verification of the input file in qttracereplay - Sanity check input binary file, both for existance and for content in qttracereplay - Console app on windows and mac - Added helpful output for -h and --help command line options Reviewed-by: Samuel
Diffstat (limited to 'src/plugins/graphicssystems')
-rw-r--r--src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp b/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp
index 8756ecb..fb6f5ea 100644
--- a/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp
+++ b/src/plugins/graphicssystems/trace/qgraphicssystem_trace.cpp
@@ -82,6 +82,7 @@ QTraceWindowSurface::~QTraceWindowSurface()
QFile outputFile(QString(QLatin1String("qtgraphics-%0.trace")).arg(winId));
if (outputFile.open(QIODevice::WriteOnly)) {
QDataStream out(&outputFile);
+ out.writeBytes("qttrace", 7);
out << *buffer << updates;
}
delete buffer;