Mercurial > minori
diff include/gui/widgets/anime_info.h @ 291:9a88e1725fd2
*: refactor lots of stuff
I forgot to put this into different commits, oops!
anyway, it doesn't really matter *that* much since this is an
unfinished hobby project anyway. once it starts getting stable
commit history will be more important, but for now it's not
that big of a deal
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 12 May 2024 16:31:07 -0400 |
parents | 3ec7804abf17 |
children | b1f625b0227c |
line wrap: on
line diff
--- a/include/gui/widgets/anime_info.h Wed May 08 17:32:28 2024 -0400 +++ b/include/gui/widgets/anime_info.h Sun May 12 16:31:07 2024 -0400 @@ -2,12 +2,7 @@ #define MINORI_GUI_WIDGETS_ANIME_INFO_H_ #include <QWidget> - -namespace TextWidgets { -class OneLineSection; -class LabelledSection; -class SelectableSection; -} // namespace TextWidgets +#include "gui/widgets/text.h" namespace Anime { class Anime; @@ -22,9 +17,9 @@ void SetAnime(const Anime::Anime& anime); private: - std::shared_ptr<TextWidgets::OneLineSection> _title = nullptr; - std::shared_ptr<TextWidgets::LabelledSection> _details = nullptr; - std::shared_ptr<TextWidgets::SelectableSection> _synopsis = nullptr; + TextWidgets::OneLineSection _title; + TextWidgets::LabelledSection _details; + TextWidgets::SelectableSection _synopsis; }; #endif // MINORI_GUI_WIDGETS_ANIME_INFO_H_