1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-14 07:09:09 +01:00
monero-gui/oshelper.cpp

25 lines
391 B
C++
Raw Normal View History

#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();
}