Mercurial > minori
annotate src/include/window.h @ 7:07a9095eaeed
Update
Refactored some code, moved some around
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 24 Aug 2023 23:11:38 -0400 |
parents | 1d82f6e04d7d |
children |
rev | line source |
---|---|
2 | 1 #ifndef __window_h |
7 | 2 #define __window_h |
3 #include <QMainWindow> | |
4 #include <QWidget> | |
5 #include <QCloseEvent> | |
6 #include "config.h" | |
2 | 7 |
8 class MainWindow : public QMainWindow { | |
9 public: | |
10 MainWindow(QWidget* parent = nullptr); | |
11 void SetActivePage(QWidget* page); | |
12 void SetStyleSheet(enum Themes theme); | |
13 void ThemeChanged(); | |
4
5af270662505
Set override functions as override
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
14 void closeEvent(QCloseEvent* event) override; |
2 | 15 |
16 private: | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
4
diff
changeset
|
17 QWidget* main_widget; |
2 | 18 }; |
19 | |
20 #endif // __window_h |