Mercurial > minori
comparison include/gui/dialog/information.h @ 83:d02fdf1d6708
*: huuuge update
1. make the now playing page function correctly
2. de-constructorfy many of our custom widgets,
allowing them to be changed on-the-fly from
the Now Playing page
3. ... :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 24 Oct 2023 22:01:02 -0400 |
parents | 3d2decf093bb |
children | c69230dc2b5d |
comparison
equal
deleted
inserted
replaced
82:8b65c417c225 | 83:d02fdf1d6708 |
---|---|
7 | 7 |
8 class InformationDialog : public QDialog { | 8 class InformationDialog : public QDialog { |
9 Q_OBJECT | 9 Q_OBJECT |
10 | 10 |
11 public: | 11 public: |
12 InformationDialog(const Anime::Anime& anime, std::function<void()> accept, QWidget* parent = nullptr); | 12 InformationDialog(Anime::Anime& anime, std::function<void()> accept, QWidget* parent = nullptr); |
13 | 13 |
14 private: | 14 private: |
15 unsigned int id; | 15 void SaveData(Anime::Anime& anime); |
16 unsigned int progress; | 16 unsigned int _progress; |
17 unsigned int score; | 17 unsigned int _score; |
18 bool rewatching; | 18 bool _rewatching; |
19 Anime::ListStatus status; | 19 Anime::ListStatus _status; |
20 std::string notes; | 20 std::string _notes; |
21 Date started; | 21 Date _started; |
22 Date completed; | 22 Date _completed; |
23 void SaveData(); | |
24 }; | 23 }; |
25 #endif // __gui__dialog__information_h | 24 #endif // __gui__dialog__information_h |