Mercurial > minori
comparison include/gui/window.h @ 112:80f49f623d30
locale: allow switching locales without restarting
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 06 Nov 2023 13:41:30 -0500 |
parents | 6d8da6e64d61 |
children | ab191e28e69d |
comparison
equal
deleted
inserted
replaced
111:fcae8bece0ec | 112:80f49f623d30 |
---|---|
13 | 13 |
14 public: | 14 public: |
15 MainWindow(QWidget* parent = nullptr); | 15 MainWindow(QWidget* parent = nullptr); |
16 void SetActivePage(QWidget* page); | 16 void SetActivePage(QWidget* page); |
17 void CreateBars(); | 17 void CreateBars(); |
18 void AddMainWidgets(); | |
19 void RetranslateUI(); | |
20 void AsyncSynchronize(QStackedWidget* stack); | |
21 void changeEvent(QEvent* event) override; | |
18 void showEvent(QShowEvent* event) override; | 22 void showEvent(QShowEvent* event) override; |
19 void closeEvent(QCloseEvent* event) override; | 23 void closeEvent(QCloseEvent* event) override; |
20 | 24 |
21 private: | 25 private: |
22 QWidget* main_widget; | 26 QWidget* main_widget = nullptr; |
23 QStackedWidget* stack; | 27 QStackedWidget* stack = nullptr; |
24 SideBar* sidebar; | 28 SideBar* sidebar = nullptr; |
25 }; | 29 }; |
26 | 30 |
27 #endif // __window_h | 31 #endif // __window_h |