print outoutFile Name

This commit is contained in:
hysios hu 2012-09-23 16:54:25 +08:00
parent f2126b2885
commit fd383be5ac

View File

@ -154,8 +154,10 @@ void Runner::print(const QString &fh, const QString &content) {
int index = (int)fh.split(":").last().toUInt(); int index = (int)fh.split(":").last().toUInt();
QTextStream ts(outputFiles.at(index)); QTextStream ts(outputFiles.at(index));
while (!outputFiles.isEmpty()) while (!outputFiles.isEmpty()){
std::cout << qPrintable(outputFiles.dequeue()) << std::endl; QFile *outputFile = outputFiles.dequeue();
std::cout << qPrintable(outputFile->fileName()) << std::endl;
}
ts << qPrintable(content); ts << qPrintable(content);
ts.flush(); ts.flush();
} }