Pagetraining: Fix broken style sheet
authorWuzzy <Wuzzy2@mail.ru>
Thu, 18 Jul 2019 00:20:50 +0200
changeset 15269 7d957886170f
parent 15268 647157250713
child 15270 441bdf1e6026
Pagetraining: Fix broken style sheet
QTfrontend/ui/page/pagetraining.cpp
--- a/QTfrontend/ui/page/pagetraining.cpp	Wed Jul 17 23:52:01 2019 +0200
+++ b/QTfrontend/ui/page/pagetraining.cpp	Thu Jul 18 00:20:50 2019 +0200
@@ -93,18 +93,21 @@
     // let's not make the tab widget use more space than needed
     tbw->setFixedWidth(400);
     pageLayout->setAlignment(tbw, Qt::AlignHCenter);
+
+    QString style = "QListWidget { border-style: none; padding-top: 6px; } QListWidget::item { padding-top: 2px; padding-bottom: 2px; }";
  
-    tbw->setStyleSheet("QListWidget { border-style: none; padding-top: 6px; }");
-
     // training/challenge/scenario lists
     lstTrainings = new QListWidget(this);
     lstTrainings ->setWhatsThis(tr("Pick the training to play"));
+    lstTrainings->setStyleSheet(style);
 
     lstChallenges = new QListWidget(this);
     lstChallenges ->setWhatsThis(tr("Pick the challenge to play"));
+    lstChallenges->setStyleSheet(style);
 
     lstScenarios= new QListWidget(this);
     lstScenarios->setWhatsThis(tr("Pick the scenario to play"));
+    lstScenarios->setStyleSheet(style);
 
     tbw->addTab(lstTrainings, tr("Trainings"));
     tbw->addTab(lstChallenges, tr("Challenges"));