Mercurial > minori
annotate include/gui/window.h @ 37:9ae9365dd4ea
window.cpp: fix sidebar on Linux
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 21 Sep 2023 17:15:43 -0400 |
parents | 5c0397762b53 |
children | d0adc4aedfc8 |
rev | line source |
---|---|
2 | 1 #ifndef __window_h |
7 | 2 #define __window_h |
9 | 3 #include "core/config.h" |
4 #include <QCloseEvent> | |
7 | 5 #include <QMainWindow> |
6 #include <QWidget> | |
2 | 7 |
8 class MainWindow : public QMainWindow { | |
9 | 9 Q_OBJECT |
10 | |
2 | 11 public: |
12 MainWindow(QWidget* parent = nullptr); | |
13 void SetActivePage(QWidget* page); | |
14 void SetStyleSheet(enum Themes theme); | |
15 void ThemeChanged(); | |
4
5af270662505
Set override functions as override
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
16 void closeEvent(QCloseEvent* event) override; |
2 | 17 |
18 private: | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
4
diff
changeset
|
19 QWidget* main_widget; |
2 | 20 }; |
21 | |
22 #endif // __window_h |