Mercurial > minori
comparison include/gui/window.h @ 315:34347fd2a2de
session: allow printing status messages
...!
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Tue, 11 Jun 2024 14:16:40 -0400 |
parents | 9a88e1725fd2 |
children |
comparison
equal
deleted
inserted
replaced
314:76d7315504c4 | 315:34347fd2a2de |
---|---|
25 class QMenu; | 25 class QMenu; |
26 class AnimeListPage; | 26 class AnimeListPage; |
27 | 27 |
28 /* ... :) */ | 28 /* ... :) */ |
29 Q_DECLARE_METATYPE(std::vector<std::string>); | 29 Q_DECLARE_METATYPE(std::vector<std::string>); |
30 Q_DECLARE_METATYPE(std::string); | |
30 | 31 |
31 class MainWindowPlayingThread final : public QThread { | 32 class MainWindowPlayingThread final : public QThread { |
32 Q_OBJECT | 33 Q_OBJECT |
33 | 34 |
34 public: | 35 public: |
82 void AsyncSynchronize(QAction* action, QStackedWidget* stack); | 83 void AsyncSynchronize(QAction* action, QStackedWidget* stack); |
83 void changeEvent(QEvent* event) override; | 84 void changeEvent(QEvent* event) override; |
84 void showEvent(QShowEvent* event) override; | 85 void showEvent(QShowEvent* event) override; |
85 void closeEvent(QCloseEvent* event) override; | 86 void closeEvent(QCloseEvent* event) override; |
86 | 87 |
88 public slots: | |
89 void SetStatusMessage(const std::string& message); | |
90 | |
87 private: | 91 private: |
88 QWidget main_widget_; | 92 QWidget main_widget_; |
89 QStackedWidget stack_; | 93 QStackedWidget stack_; |
90 SideBar sidebar_; | 94 SideBar sidebar_; |
91 | 95 |