-- QString tempFile = tempDir + "/" + Constants::UNIX_NAME + "-" + QString::number(qrand());
-+ tempfiles << tempfile;
+ QString Temporary::filename() {
+- static const QString tempDir = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
++ QTemporaryFile *tempfile = new QTemporaryFile(QDir::tempPath() + "/" + QString::number(qrand()));
++ tempfiles += tempfile;