diff options
| author | Ilya Kitaev <mbg033@gmail.com> | 2016-06-10 16:41:13 +0300 |
|---|---|---|
| committer | Ilya Kitaev <mbg033@gmail.com> | 2016-06-10 16:41:13 +0300 |
| commit | fd50e6f9a3bc445cb3c0d21b7a0f584e95b44450 (patch) | |
| tree | e942ec37af313d0e51a2f7f7eca8f45ff834b679 /oshelper.cpp | |
| parent | 5c10be325103d668884fc5e463aaa59c726d4f8e (diff) | |
| download | monzero-gui-fd50e6f9a3bc445cb3c0d21b7a0f584e95b44450.tar.gz monzero-gui-fd50e6f9a3bc445cb3c0d21b7a0f584e95b44450.tar.xz monzero-gui-fd50e6f9a3bc445cb3c0d21b7a0f584e95b44450.zip | |
new wallet wizard: wallet created in temporary directory and moved to
the destination at the final step
Diffstat (limited to 'oshelper.cpp')
| -rw-r--r-- | oshelper.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/oshelper.cpp b/oshelper.cpp new file mode 100644 index 00000000..cecae38e --- /dev/null +++ b/oshelper.cpp @@ -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(); +} |
