# HG changeset patch # User Wuzzy # Date 1563402050 -7200 # Node ID 7d957886170f94a41b1e90a92b1796625215e5a0 # Parent 647157250713b62b561d5681ef1a21b06f3ccbaf Pagetraining: Fix broken style sheet diff -r 647157250713 -r 7d957886170f 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"));