#ifndef SETTINGSDIALOG_H #define SETTINGSDIALOG_H #include #include #include "database.h" QT_BEGIN_NAMESPACE namespace Ui { class SettingsDialog; } QT_END_NAMESPACE class SettingsDialog : public QDialog { Q_OBJECT public: explicit SettingsDialog(Database *db, QWidget *parent = nullptr); ~SettingsDialog(); QFont getCurrentAmountFont() const { return currentAmountFont; } int getWeekStartDay() const { return weekStartDay; } private slots: void onChooseAmountFont(); private: Ui::SettingsDialog *ui; Database *database; QFont currentAmountFont; int weekStartDay; void loadSettings(); void saveSettings(); }; #endif // SETTINGSDIALOG_H