Implement saving to file

This commit is contained in:
Aurélie Delhaie
2022-12-18 20:13:51 +01:00
parent a348705c39
commit 94c7ff87c4
13 changed files with 260 additions and 28 deletions

View File

@@ -2,14 +2,21 @@
#define TOOLS_H
#include <QColor>
#include <QJsonDocument>
class Tools
{
public:
Tools();
static QColor getRandomColor();
static QColor getForegroundColor(QColor background);
static const QColor getRandomColor();
static const QColor getForegroundColor(QColor background);
static bool isSaveFileExist();
static bool writeSaveToFile(QJsonDocument doc);
static bool readSaveFile(QJsonDocument &doc);
private:
static const QString getSaveFilePath();
};