Mercurial > minori
diff src/gui/pages/statistics.cpp @ 75:d3e9310598b1
*: refactor some stuff
text: "TextParagraph"s are now called sections, because that's the
actual word for it :P
text: new classes: Line and OneLineSection, solves many problems with
paragraphs that are only one line long (ex. going out of bounds)
http: reworked http stuff to allow threaded get requests, also moved it
to its own file to (hopefully) remove clutter
eventually I'll make a threaded post request method and use that in
the "basic" function
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 04 Oct 2023 01:42:30 -0400 |
parents | fe719c109dbc |
children |
line wrap: on
line diff
--- a/src/gui/pages/statistics.cpp Tue Oct 03 06:12:43 2023 -0400 +++ b/src/gui/pages/statistics.cpp Wed Oct 04 01:42:30 2023 -0400 @@ -22,14 +22,14 @@ setPalette(pal); setAutoFillBackground(true); - TextWidgets::LabelledTextParagraph* anime_list_paragraph = new TextWidgets::LabelledTextParagraph( + TextWidgets::LabelledSection* anime_list_paragraph = new TextWidgets::LabelledSection( tr("Anime list"), tr("Anime count:\nEpisode count:\nTime spent watching:\nTime to complete:\nAverage score:\nScore deviation:"), "\n\n\n\n\n\n", this); anime_list_data = anime_list_paragraph->GetParagraph(); - TextWidgets::LabelledTextParagraph* application_paragraph = - new TextWidgets::LabelledTextParagraph(tr("Minori"), tr("Uptime:\nRequests made:"), "\n\n", this); + TextWidgets::LabelledSection* application_paragraph = + new TextWidgets::LabelledSection(tr("Minori"), tr("Uptime:\nRequests made:"), "\n\n", this); application_data = application_paragraph->GetParagraph(); layout->addWidget(anime_list_paragraph);