diff 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
line wrap: on
line diff
--- a/include/gui/dialog/information.h	Mon Oct 23 13:37:42 2023 -0400
+++ b/include/gui/dialog/information.h	Tue Oct 24 22:01:02 2023 -0400
@@ -9,17 +9,16 @@
 		Q_OBJECT
 
 	public:
-		InformationDialog(const Anime::Anime& anime, std::function<void()> accept, QWidget* parent = nullptr);
+		InformationDialog(Anime::Anime& anime, std::function<void()> accept, QWidget* parent = nullptr);
 
 	private:
-		unsigned int id;
-		unsigned int progress;
-		unsigned int score;
-		bool rewatching;
-		Anime::ListStatus status;
-		std::string notes;
-		Date started;
-		Date completed;
-		void SaveData();
+		void SaveData(Anime::Anime& anime);
+		unsigned int _progress;
+		unsigned int _score;
+		bool _rewatching;
+		Anime::ListStatus _status;
+		std::string _notes;
+		Date _started;
+		Date _completed;
 };
 #endif // __gui__dialog__information_h