comparison src/gui/pages/statistics.cc @ 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 862d0d8619f6
children b82841e76e79
comparison
equal deleted inserted replaced
290:9347e2eaf6e5 291:9a88e1725fd2
139 ts << Anime::db.GetTotalEpisodeAmount() << '\n'; 139 ts << Anime::db.GetTotalEpisodeAmount() << '\n';
140 ts << Strings::ToQString(TimeToDateString(TimeUnits::MINUTES, Anime::db.GetTotalWatchedAmount(), 60.0)) << '\n'; 140 ts << Strings::ToQString(TimeToDateString(TimeUnits::MINUTES, Anime::db.GetTotalWatchedAmount(), 60.0)) << '\n';
141 ts << Strings::ToQString(TimeToDateString(TimeUnits::MINUTES, Anime::db.GetTotalPlannedAmount(), 60.0)) << '\n'; 141 ts << Strings::ToQString(TimeToDateString(TimeUnits::MINUTES, Anime::db.GetTotalPlannedAmount(), 60.0)) << '\n';
142 ts << Anime::db.GetAverageScore() << '\n'; 142 ts << Anime::db.GetAverageScore() << '\n';
143 ts << Anime::db.GetScoreDeviation(); 143 ts << Anime::db.GetScoreDeviation();
144 _anime_list->GetParagraph()->SetText(string); 144 _anime_list->GetData()->setText(string);
145 145
146 _score_distribution_graph->Clear(); 146 _score_distribution_graph->Clear();
147 for (int i = 10; i <= 100; i += 10) 147 for (int i = 10; i <= 100; i += 10)
148 _score_distribution_graph->AddItem(i, GetTotalWithScore(i)); 148 _score_distribution_graph->AddItem(i, GetTotalWithScore(i));
149 149
150 string = ""; 150 string = "";
151 ts << Strings::ToQString(TimeToDateString(TimeUnits::SECONDS, session.uptime() / 1000)) << '\n'; 151 ts << Strings::ToQString(TimeToDateString(TimeUnits::SECONDS, session.uptime() / 1000)) << '\n';
152 ts << session.GetRequests(); 152 ts << session.GetRequests();
153 /* Application */ 153 /* Application */
154 // UiUtils::SetPlainTextEditData(application_data, QString::number(session.uptime() / 1000)); 154 // UiUtils::SetPlainTextEditData(application_data, QString::number(session.uptime() / 1000));
155 _application->GetParagraph()->SetText(string); 155 _application->GetData()->setText(string);
156 } 156 }