Mercurial > minori
comparison include/gui/dialog/settings.h @ 68:2417121d894e
*: normalize usage of layouts
before, I used them two ways, once was by setting the layout later
by using setLayout(QWidget), and the other was just using the constructor.
I find the constructor to be easier to read, so I chose that one.
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 02 Oct 2023 21:33:25 -0400 |
parents | 4c6dd5999b39 |
children | 27a19dd6cba1 |
comparison
equal
deleted
inserted
replaced
67:442065432549 | 68:2417121d894e |
---|---|
1 #ifndef __gui__dialog__settings_h | 1 #ifndef __gui__dialog__settings_h |
2 #define __gui__dialog__settings_h | 2 #define __gui__dialog__settings_h |
3 #include "core/anime.h" | 3 #include "core/anime.h" |
4 #include "gui/widgets/sidebar.h" | |
5 #include <QComboBox> | |
6 #include <QDialog> | 4 #include <QDialog> |
7 #include <QHBoxLayout> | |
8 #include <QLabel> | |
9 #include <QLineEdit> | |
10 #include <QTabWidget> | |
11 #include <QWidget> | 5 #include <QWidget> |
6 | |
7 class QLabel; | |
8 class QTabWidget; | |
9 class SideBar; | |
12 | 10 |
13 class SettingsPage : public QWidget { | 11 class SettingsPage : public QWidget { |
14 Q_OBJECT | 12 Q_OBJECT |
15 | 13 |
16 public: | 14 public: |
57 SettingsDialog(QWidget* parent = nullptr); | 55 SettingsDialog(QWidget* parent = nullptr); |
58 QWidget* CreateServicesMainPage(QWidget* parent); | 56 QWidget* CreateServicesMainPage(QWidget* parent); |
59 void OnOK(); | 57 void OnOK(); |
60 | 58 |
61 private: | 59 private: |
62 QHBoxLayout* layout; | |
63 SideBar* sidebar; | 60 SideBar* sidebar; |
64 }; | 61 }; |
65 #endif // __gui__dialog__settings_h | 62 #endif // __gui__dialog__settings_h |