diff src/gui/pages/statistics.cpp @ 47:d8eb763e6661

information.cpp: add widgets to the list tab, and add an "optional date" widget like taiga has so users can specify whether to set the date or not
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 00:43:38 -0400
parents d0adc4aedfc8
children e613772f41d5
line wrap: on
line diff
--- a/src/gui/pages/statistics.cpp	Sat Sep 23 01:02:15 2023 -0400
+++ b/src/gui/pages/statistics.cpp	Mon Sep 25 00:43:38 2023 -0400
@@ -29,7 +29,7 @@
 	anime_list_data = anime_list_paragraph->GetParagraph();
 
 	TextWidgets::LabelledTextParagraph* application_paragraph =
-	    new TextWidgets::LabelledTextParagraph("Minori", "Uptime:", "", this);
+	    new TextWidgets::LabelledTextParagraph("Minori", "Uptime:\nRequests made:", "", this);
 	application_data = application_paragraph->GetParagraph();
 
 	layout()->addWidget(anime_list_paragraph);
@@ -104,9 +104,12 @@
 	ts << Anime::db.GetScoreDeviation();
 	TextWidgets::SetPlainTextEditData(anime_list_data, string);
 
+	string = "";
+	ts << QString::fromUtf8(SecondsToDateString(session.uptime() / 1000).c_str()) << '\n';
+	ts << session.GetRequests();
 	/* Application */
 	// UiUtils::SetPlainTextEditData(application_data, QString::number(session.uptime() / 1000));
-	TextWidgets::SetPlainTextEditData(application_data, QString(SecondsToDateString(session.uptime() / 1000).c_str()));
+	TextWidgets::SetPlainTextEditData(application_data, string);
 }
 
 #include "gui/pages/moc_statistics.cpp"