comparison include/gui/dialog/settings.h @ 95:8043152ef9d4

include: set classes as final where appropriate
author Paper <mrpapersonic@gmail.com>
date Wed, 01 Nov 2023 14:39:43 -0400
parents c69230dc2b5d
children c537996cf67b
comparison
equal deleted inserted replaced
94:2f373d48f889 95:8043152ef9d4
22 private: 22 private:
23 QLabel* page_title; 23 QLabel* page_title;
24 QTabWidget* tab_widget; 24 QTabWidget* tab_widget;
25 }; 25 };
26 26
27 class SettingsPageServices : public SettingsPage { 27 class SettingsPageServices final : public SettingsPage {
28 public: 28 public:
29 SettingsPageServices(QWidget* parent = nullptr); 29 SettingsPageServices(QWidget* parent = nullptr);
30 void SaveInfo() override; 30 void SaveInfo() override;
31 31
32 private: 32 private:
34 QWidget* CreateAniListPage(); 34 QWidget* CreateAniListPage();
35 QString username; 35 QString username;
36 Anime::Services service; 36 Anime::Services service;
37 }; 37 };
38 38
39 class SettingsPageApplication : public SettingsPage { 39 class SettingsPageApplication final : public SettingsPage {
40 public: 40 public:
41 SettingsPageApplication(QWidget* parent = nullptr); 41 SettingsPageApplication(QWidget* parent = nullptr);
42 void SaveInfo() override; 42 void SaveInfo() override;
43 43
44 private: 44 private:
48 bool display_available_episodes; 48 bool display_available_episodes;
49 bool highlight_anime_if_available; 49 bool highlight_anime_if_available;
50 bool highlighted_anime_above_others; 50 bool highlighted_anime_above_others;
51 }; 51 };
52 52
53 class SettingsDialog : public QDialog { 53 class SettingsDialog final : public QDialog {
54 Q_OBJECT 54 Q_OBJECT
55 55
56 public: 56 public:
57 SettingsDialog(QWidget* parent = nullptr); 57 SettingsDialog(QWidget* parent = nullptr);
58 QWidget* CreateServicesMainPage(QWidget* parent); 58 QWidget* CreateServicesMainPage(QWidget* parent);