Implement saving to file
This commit is contained in:
11
src/tools.h
11
src/tools.h
@@ -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();
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user