Mercurial > minori
diff include/gui/dialog/settings.h @ 108:2004b41d4a59
*: huge commit
1. WORKING LOCALIZATION + translation for Spanish and British English
2. idk like 2 changes for the dark theme :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 05 Nov 2023 23:31:49 -0500 |
parents | c537996cf67b |
children | 254b1d2b7096 |
line wrap: on
line diff
--- a/include/gui/dialog/settings.h Sun Nov 05 17:44:49 2023 -0500 +++ b/include/gui/dialog/settings.h Sun Nov 05 23:31:49 2023 -0500 @@ -5,6 +5,7 @@ #include "core/config.h" #include <QDialog> #include <QWidget> +#include <QLocale> class QLabel; class QTabWidget; @@ -26,6 +27,8 @@ }; class SettingsPageServices final : public SettingsPage { + Q_OBJECT + public: SettingsPageServices(QWidget* parent = nullptr); void SaveInfo() override; @@ -38,6 +41,8 @@ }; class SettingsPageApplication final : public SettingsPage { + Q_OBJECT + public: SettingsPageApplication(QWidget* parent = nullptr); void SaveInfo() override; @@ -45,6 +50,7 @@ private: QWidget* CreateAnimeListWidget(); Themes theme; + QLocale locale; Anime::TitleLanguage language; bool display_aired_episodes; bool display_available_episodes; @@ -60,6 +66,9 @@ QWidget* CreateServicesMainPage(QWidget* parent); void OnOK(); + protected: + void showEvent(QShowEvent* event) override; + private: SideBar* sidebar; QStackedWidget* stacked;