mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-13 20:06:34 +02:00
fd50e6f9a3
the destination at the final step
25 lines
391 B
C++
25 lines
391 B
C++
#include "oshelper.h"
|
|
#include <QTemporaryFile>
|
|
#include <QDir>
|
|
|
|
OSHelper::OSHelper(QObject *parent) : QObject(parent)
|
|
{
|
|
|
|
}
|
|
|
|
QString OSHelper::temporaryFilename() const
|
|
{
|
|
QString tempFileName;
|
|
{
|
|
QTemporaryFile f;
|
|
f.open();
|
|
tempFileName = f.fileName();
|
|
}
|
|
return tempFileName;
|
|
}
|
|
|
|
QString OSHelper::temporaryPath() const
|
|
{
|
|
return QDir::tempPath();
|
|
}
|