Add support of leaves

This commit is contained in:
Aurélie Delhaie
2022-10-16 17:36:47 +02:00
parent 6a44c4afd9
commit fd4b766c4d
14 changed files with 219 additions and 77 deletions

View File

@@ -4,7 +4,7 @@
#define KEY_TEMPLATE "template"
#define KEY_YEARS "years"
#define SAVE_FILENAME "data.json"
#define SAVE_FILE_VERSION 3
#define SAVE_FILE_VERSION 4
#define KEY_SAVE_FILE_VERSION "version"
#include <QMouseEvent>
@@ -25,7 +25,6 @@
#include "models/week.h"
#include "models/year.h"
#include "welcome.h"
#include "tools.h"
#include "aboutbox.h"
#include "weekoption.h"
@@ -52,13 +51,10 @@ private:
void panic_dialog(QString text);
// UI Update
void updateStartLabel();
void updateBreakLabel();
void updateEndLabel();
void updateLabels();
void highlightDayOfWeek();
void updateValidIcon();
void updateWarningIcon();
void updateWeekTime();
void updateDayLabels(QLabel *start, QLabel *end, QLabel *breaks, QFrame *validate, QFrame *warning, QFrame *not_working, Day *d);
QString get_save_file_path();
Identifier get_identifier(QString objectName);