Commit 4392c112 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: fixes viewlogger for Windows

parent 7d3d9cad
......@@ -76,11 +76,15 @@ ViewLogger::ViewLogger(QObject *parent)
#endif
QTemporaryFile *temporaryFile = new QTemporaryFile(tempPath + QString("/bauhaus-logger-%1-XXXXXX.txt").arg(QDateTime::currentDateTime().toString(Qt::ISODate).replace(":", "-")), this);
QString tempFileName = tempPath + QString("/bauhaus-logger-%1-XXXXXX.txt").arg(QDateTime::currentDateTime().toString(Qt::ISODate).replace(':', '-'));
temporaryFile->setAutoRemove(false);
if (temporaryFile->open()) {
qDebug() << "TemporaryLoggerFile is:" << temporaryFile->fileName();
qDebug() << "ViewLogger: TemporaryLoggerFile is:" << temporaryFile->fileName();
m_output.setDevice(temporaryFile);
} else {
qDebug() << "ViewLogger: failed to open:" << temporaryFile->fileName();
}
m_timer.start();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment