|    146     QString templatePath = QDir::temp().absoluteFilePath(tmpBaseName); |    146     QString templatePath = QDir::temp().absoluteFilePath(tmpBaseName); | 
|    147     QFile tmpQSourceFile(templatePath); |    147     QFile tmpQSourceFile(templatePath); | 
|    148     if (tmpSourceFile.isEmpty()) { |    148     if (tmpSourceFile.isEmpty()) { | 
|    149         tmpQSourceFile.open(QIODevice::ReadWrite | QIODevice::Truncate); |    149         tmpQSourceFile.open(QIODevice::ReadWrite | QIODevice::Truncate); | 
|    150         tmpSourceFile = tmpQSourceFile.fileName(); |    150         tmpSourceFile = tmpQSourceFile.fileName(); | 
|    151         QFile cppSource(":/test.cpp"); |    151         QFile cppSource(":/test_cpp.txt"); | 
|    152         bool openResult = cppSource.open(QIODevice::ReadOnly); |    152         bool openResult = cppSource.open(QIODevice::ReadOnly); | 
|    153         if (openResult) |    153         if (openResult) | 
|    154         { |    154         { | 
|    155             QTextStream in(&cppSource); |    155             QTextStream in(&cppSource); | 
|    156             QTextStream out(&tmpQSourceFile); |    156             QTextStream out(&tmpQSourceFile); | 
|    157             out << in.readAll(); |    157             out << in.readAll(); | 
|    158         } |    158         } | 
|    159     } |    159     } | 
|    160     tmpQSourceFile.close(); |    160     tmpQSourceFile.close(); | 
|    161     QVERIFY2(openResult, "Need resource temporary \"test.cpp\""); |    161     QVERIFY2(openResult, "Need resource temporary \"test_cpp.txt\""); | 
|    162  |    162  | 
|    163     QStringList args; |    163     QStringList args; | 
|    164     QString compilerName; |    164     QString compilerName; | 
|    165  |    165  | 
|    166     static QString qtDir = QString::fromLocal8Bit(qgetenv("QTDIR")); |    166     static QString qtDir = QString::fromLocal8Bit(qgetenv("QTDIR")); |