--- a/QTfrontend/ui/page/pagegamestats.cpp Tue May 28 01:58:42 2019 +0200
+++ b/QTfrontend/ui/page/pagegamestats.cpp Tue May 28 13:07:56 2019 +0200
@@ -204,6 +204,7 @@
if(maxDataPoints < 2) {
labelGraphTitle->hide();
graphic->hide();
+ applySpacing();
return;
}
@@ -275,6 +276,11 @@
labelGraphTitle->show();
gbDetails->show();
}
+ applySpacing();
+}
+
+void PageGameStats::applySpacing()
+{
if (!labelGameStats->isHidden())
{
labelGraphTitle->setText("<br>" + labelGraphTitle->text());
--- a/QTfrontend/ui/page/pagegamestats.h Tue May 28 01:58:42 2019 +0200
+++ b/QTfrontend/ui/page/pagegamestats.h Tue May 28 13:07:56 2019 +0200
@@ -65,6 +65,7 @@
private:
void AddStatText(const QString & msg);
+ void applySpacing();
QMap<qint32, QVector<qint32> > healthPoints;
unsigned int playerPosition;