QTfrontend/ui/page/pagetraining.cpp
changeset 15269 7d957886170f
parent 14667 e3e6b0c6543f
child 15278 752b44ffa707
--- 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"));