diff 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
line wrap: on
line diff
--- a/include/gui/dialog/settings.h	Mon Oct 02 07:06:44 2023 -0400
+++ b/include/gui/dialog/settings.h	Mon Oct 02 21:33:25 2023 -0400
@@ -1,15 +1,13 @@
 #ifndef __gui__dialog__settings_h
 #define __gui__dialog__settings_h
 #include "core/anime.h"
-#include "gui/widgets/sidebar.h"
-#include <QComboBox>
 #include <QDialog>
-#include <QHBoxLayout>
-#include <QLabel>
-#include <QLineEdit>
-#include <QTabWidget>
 #include <QWidget>
 
+class QLabel;
+class QTabWidget;
+class SideBar;
+
 class SettingsPage : public QWidget {
 		Q_OBJECT
 
@@ -59,7 +57,6 @@
 		void OnOK();
 
 	private:
-		QHBoxLayout* layout;
 		SideBar* sidebar;
 };
 #endif // __gui__dialog__settings_h