Commit 7d65ac78 authored by heretik's avatar heretik
Browse files

replace boost::uuid by QUuid

parent a678aec0
......@@ -3,9 +3,7 @@
#include "ui_mainwindow.h"
#include <QSettings>
#include <QStandardPaths>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <QUuid>
#include <filesystem>
#include <fstream>
......@@ -138,9 +136,8 @@ void MainWindow::closeEvent( QCloseEvent *event )
void MainWindow::prepare_directory()
{
// get unique writeable directory
auto cache_dir = QStandardPaths::writableLocation( QStandardPaths::CacheLocation ).toStdString();
namespace bu = ::boost::uuids;
directory_ = cache_dir + "/" + bu::to_string( bu::random_generator()() );
auto cache_dir = QStandardPaths::writableLocation( QStandardPaths::CacheLocation );
directory_ = (cache_dir + "/" + QUuid::createUuid().toString()).toStdString();
// create directory
fs::create_directories( directory_ / "build" );
......
......@@ -39,36 +39,36 @@
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="39"/>
<location filename="../src/prototypator/mainwindow.cpp" line="37"/>
<source>testing presence of cmake...
</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="43"/>
<location filename="../src/prototypator/mainwindow.cpp" line="41"/>
<source>running &apos;cmake&apos;...
</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="47"/>
<location filename="../src/prototypator/mainwindow.cpp" line="45"/>
<source>running &apos;make&apos;...
</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="51"/>
<location filename="../src/prototypator/mainwindow.cpp" line="49"/>
<source>running application...
</source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="108"/>
<location filename="../src/prototypator/mainwindow.cpp" line="106"/>
<source> exited with code </source>
<translation></translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="171"/>
<location filename="../src/prototypator/mainwindow.cpp" line="168"/>
<source>failed to start &apos;</source>
<translation></translation>
</message>
......
......@@ -39,40 +39,40 @@
<translation>Entrée/sortie</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="39"/>
<location filename="../src/prototypator/mainwindow.cpp" line="37"/>
<source>testing presence of cmake...
</source>
<translation>test de la présence de cmake...
</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="43"/>
<location filename="../src/prototypator/mainwindow.cpp" line="41"/>
<source>running &apos;cmake&apos;...
</source>
<translation>démarrage de &apos;cmake&apos;...
</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="47"/>
<location filename="../src/prototypator/mainwindow.cpp" line="45"/>
<source>running &apos;make&apos;...
</source>
<translation>démarrage de &apos;make&apos;...
</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="51"/>
<location filename="../src/prototypator/mainwindow.cpp" line="49"/>
<source>running application...
</source>
<translation>démarrage de l&apos;application...
</translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="108"/>
<location filename="../src/prototypator/mainwindow.cpp" line="106"/>
<source> exited with code </source>
<translation> s&apos;est terminé avec le code </translation>
</message>
<message>
<location filename="../src/prototypator/mainwindow.cpp" line="171"/>
<location filename="../src/prototypator/mainwindow.cpp" line="168"/>
<source>failed to start &apos;</source>
<translation>impossible de démarrer &apos;</translation>
</message>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment