Mercurial > minori
comparison src/gui/pages/statistics.cpp @ 49:f4bea5ef5b8a
paragraph: fix size hint
only tested on Linux (KDE)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 25 Sep 2023 11:40:14 -0400 |
parents | e613772f41d5 |
children | 75c804f713b2 |
comparison
equal
deleted
inserted
replaced
48:e613772f41d5 | 49:f4bea5ef5b8a |
---|---|
16 | 16 |
17 setFrameShape(QFrame::Panel); | 17 setFrameShape(QFrame::Panel); |
18 setFrameShadow(QFrame::Sunken); | 18 setFrameShadow(QFrame::Sunken); |
19 | 19 |
20 QPalette pal = QPalette(); | 20 QPalette pal = QPalette(); |
21 pal.setColor(QPalette::Window, Qt::white); | 21 pal.setColor(QPalette::Window, pal.color(QPalette::Base)); |
22 setPalette(pal); | 22 setPalette(pal); |
23 setAutoFillBackground(true); | 23 setAutoFillBackground(true); |
24 | 24 |
25 TextWidgets::LabelledTextParagraph* anime_list_paragraph = new TextWidgets::LabelledTextParagraph( | 25 TextWidgets::LabelledTextParagraph* anime_list_paragraph = new TextWidgets::LabelledTextParagraph( |
26 "Anime list", | 26 "Anime list", |
27 "Anime count:\nEpisode count:\nTime spent watching:\nTime to complete:\nAverage score:\nScore deviation:", "\n\n\n\n\n", | 27 "Anime count:\nEpisode count:\nTime spent watching:\nTime to complete:\nAverage score:\nScore deviation:", "\n\n\n\n\n\n", |
28 this); | 28 this); |
29 anime_list_data = anime_list_paragraph->GetParagraph(); | 29 anime_list_data = anime_list_paragraph->GetParagraph(); |
30 | 30 |
31 TextWidgets::LabelledTextParagraph* application_paragraph = | 31 TextWidgets::LabelledTextParagraph* application_paragraph = |
32 new TextWidgets::LabelledTextParagraph("Minori", "Uptime:\nRequests made:", "\n", this); | 32 new TextWidgets::LabelledTextParagraph("Minori", "Uptime:\nRequests made:", "\n\n", this); |
33 application_data = application_paragraph->GetParagraph(); | 33 application_data = application_paragraph->GetParagraph(); |
34 | 34 |
35 layout()->addWidget(anime_list_paragraph); | 35 layout()->addWidget(anime_list_paragraph); |
36 layout()->addWidget(application_paragraph); | 36 layout()->addWidget(application_paragraph); |
37 ((QBoxLayout*)layout())->addStretch(); | 37 ((QBoxLayout*)layout())->addStretch(); |