Mercurial > minori
comparison src/gui/dialog/information.cpp @ 10:4b198a111713
Update
things actually compile now btw
qttest wants to fuck over the model but that might be my fault so /shrug
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 16 Sep 2023 02:06:01 -0400 |
parents | 5c0397762b53 |
children | cde8f67a7c7d |
comparison
equal
deleted
inserted
replaced
9:5c0397762b53 | 10:4b198a111713 |
---|---|
51 QWidget* main_information_widget = new QWidget(tabbed_widget); | 51 QWidget* main_information_widget = new QWidget(tabbed_widget); |
52 main_information_widget->setLayout(new QVBoxLayout); | 52 main_information_widget->setLayout(new QVBoxLayout); |
53 | 53 |
54 /* alt titles */ | 54 /* alt titles */ |
55 main_information_widget->layout()->addWidget(new UiUtils::SelectableTextParagraph( | 55 main_information_widget->layout()->addWidget(new UiUtils::SelectableTextParagraph( |
56 "Alternative titles", QString::fromUtf8(StringUtils::Implode(anime.GetTitleSynonyms(), ", ").c_str()), | 56 "Alternative titles", QString::fromUtf8(Strings::Implode(anime.GetTitleSynonyms(), ", ").c_str()), |
57 main_information_widget)); | 57 main_information_widget)); |
58 | 58 |
59 /* details */ | 59 /* details */ |
60 QString details_data; | 60 QString details_data; |
61 QTextStream details_data_s(&details_data); | 61 QTextStream details_data_s(&details_data); |
62 details_data_s << Translate::TranslateSeriesFormat(anime.GetFormat()).c_str() << "\n" | 62 details_data_s << Translate::TranslateSeriesFormat(anime.GetFormat()).c_str() << "\n" |
63 << anime.GetEpisodes() << "\n" | 63 << anime.GetEpisodes() << "\n" |
64 << Translate::TranslateListStatus(anime.GetUserStatus()).c_str() << "\n" | 64 << Translate::TranslateListStatus(anime.GetUserStatus()).c_str() << "\n" |
65 << Translate::TranslateSeriesSeason(anime.GetSeason()).c_str() << " " << anime.GetAirDate().GetYear() | 65 << Translate::TranslateSeriesSeason(anime.GetSeason()).c_str() << " " << anime.GetAirDate().GetYear() |
66 << "\n" | 66 << "\n" |
67 << StringUtils::Implode(anime.GetGenres(), ", ").c_str() << "\n" | 67 << Strings::Implode(anime.GetGenres(), ", ").c_str() << "\n" |
68 << anime.GetAudienceScore() << "%"; | 68 << anime.GetAudienceScore() << "%"; |
69 main_information_widget->layout()->addWidget(new UiUtils::LabelledTextParagraph( | 69 main_information_widget->layout()->addWidget(new UiUtils::LabelledTextParagraph( |
70 "Details", "Type:\nEpisodes:\nStatus:\nSeason:\nGenres:\nScore:", details_data, main_information_widget)); | 70 "Details", "Type:\nEpisodes:\nStatus:\nSeason:\nGenres:\nScore:", details_data, main_information_widget)); |
71 | 71 |
72 /* synopsis */ | 72 /* synopsis */ |