new wallet wizard: wallet created in temporary directory and moved to

the destination at the final step
This commit is contained in:
Ilya Kitaev
2016-06-10 16:41:13 +03:00
parent 5c10be3251
commit fd50e6f9a3
13 changed files with 105 additions and 29 deletions

24
oshelper.cpp Normal file
View File

@@ -0,0 +1,24 @@
#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();
}