Mercurial > minori
diff include/gui/dialog/settings.h @ 316:180714442770
settings: clean up code
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 11 Jun 2024 15:11:09 -0400 |
parents | 657fda1b9cac |
children | b1f4d1867ab1 |
line wrap: on
line diff
--- a/include/gui/dialog/settings.h Tue Jun 11 14:16:40 2024 -0400 +++ b/include/gui/dialog/settings.h Tue Jun 11 15:11:09 2024 -0400 @@ -4,16 +4,17 @@ #include "core/anime.h" #include "core/config.h" #include "core/session.h" +#include "gui/widgets/sidebar.h" #include <QDialog> +#include <QDialogButtonBox> +#include <QLabel> #include <QListWidget> #include <QLocale> +#include <QStackedWidget> +#include <QTabWidget> +#include <QVBoxLayout> #include <QWidget> -class QLabel; -class QTabWidget; -class QStackedWidget; -class SideBar; - /* !!! MOVE THIS ELSEWHERE! */ class DroppableListWidget : public QListWidget { Q_OBJECT @@ -40,8 +41,9 @@ void AddTab(QWidget* tab, QString title = ""); private: - QLabel* page_title; - QTabWidget* tab_widget; + QLabel page_title_; + QTabWidget tab_widget_; + QVBoxLayout layout_; }; class SettingsPageServices final : public SettingsPage { @@ -133,8 +135,21 @@ void showEvent(QShowEvent* event) override; private: - SideBar* sidebar; - QStackedWidget* stacked; + QVBoxLayout layout_; + + QWidget widget_; + QHBoxLayout widget_layout_; + + SideBar sidebar_; + QStackedWidget stacked_; + + SettingsPageServices services_page_; + SettingsPageApplication application_page_; + SettingsPageTorrents torrents_page_; + SettingsPageRecognition recognition_page_; + SettingsPageLibrary library_page_; + + QDialogButtonBox button_box_; }; #endif // MINORI_GUI_DIALOG_SETTINGS_H_