# HG changeset patch # User Wuzzy # Date 1563700926 -7200 # Node ID 752b44ffa707c1e5178c02aff1413b1952a017fe # Parent f7b33ad8d502b96525caa330f9405e4202e0419a Pagetraining: Move style sheet to CSS files diff -r f7b33ad8d502 -r 752b44ffa707 QTfrontend/res/css/april1.css --- a/QTfrontend/res/css/april1.css Thu Jul 18 21:00:28 2019 +0200 +++ b/QTfrontend/res/css/april1.css Sun Jul 21 11:22:06 2019 +0200 @@ -560,3 +560,12 @@ background-color: rgb(23, 11, 54); border-width: 0px; } +#trainingList { +border-style: none; +padding-top: 6px; +} +#trainingList::item +{ +padding-top: 2px; +padding-bottom: 2px; +} diff -r f7b33ad8d502 -r 752b44ffa707 QTfrontend/res/css/birthday.css --- a/QTfrontend/res/css/birthday.css Thu Jul 18 21:00:28 2019 +0200 +++ b/QTfrontend/res/css/birthday.css Sun Jul 21 11:22:06 2019 +0200 @@ -564,3 +564,12 @@ background-color: rgb(23, 11, 54); border-width: 0px; } +#trainingList { +border-style: none; +padding-top: 6px; +} +#trainingList::item +{ +padding-top: 2px; +padding-bottom: 2px; +} diff -r f7b33ad8d502 -r 752b44ffa707 QTfrontend/res/css/christmas.css --- a/QTfrontend/res/css/christmas.css Thu Jul 18 21:00:28 2019 +0200 +++ b/QTfrontend/res/css/christmas.css Sun Jul 21 11:22:06 2019 +0200 @@ -559,3 +559,12 @@ background-color: rgb(23, 11, 54); border-width: 0px; } +#trainingList { +border-style: none; +padding-top: 6px; +} +#trainingList::item +{ +padding-top: 2px; +padding-bottom: 2px; +} diff -r f7b33ad8d502 -r 752b44ffa707 QTfrontend/res/css/easter.css --- a/QTfrontend/res/css/easter.css Thu Jul 18 21:00:28 2019 +0200 +++ b/QTfrontend/res/css/easter.css Sun Jul 21 11:22:06 2019 +0200 @@ -555,3 +555,12 @@ background-color: rgb(23, 11, 54); border-width: 0px; } +#trainingList { +border-style: none; +padding-top: 6px; +} +#trainingList::item +{ +padding-top: 2px; +padding-bottom: 2px; +} diff -r f7b33ad8d502 -r 752b44ffa707 QTfrontend/res/css/qt.css --- a/QTfrontend/res/css/qt.css Thu Jul 18 21:00:28 2019 +0200 +++ b/QTfrontend/res/css/qt.css Sun Jul 21 11:22:06 2019 +0200 @@ -551,3 +551,12 @@ background-color: rgb(23, 11, 54); border-width: 0px; } +#trainingList { +border-style: none; +padding-top: 6px; +} +#trainingList::item +{ +padding-top: 2px; +padding-bottom: 2px; +} diff -r f7b33ad8d502 -r 752b44ffa707 QTfrontend/ui/page/pagetraining.cpp --- a/QTfrontend/ui/page/pagetraining.cpp Thu Jul 18 21:00:28 2019 +0200 +++ b/QTfrontend/ui/page/pagetraining.cpp Sun Jul 21 11:22:06 2019 +0200 @@ -94,20 +94,18 @@ 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; }"; - // training/challenge/scenario lists lstTrainings = new QListWidget(this); lstTrainings ->setWhatsThis(tr("Pick the training to play")); - lstTrainings->setStyleSheet(style); + lstTrainings ->setObjectName("trainingList"); lstChallenges = new QListWidget(this); lstChallenges ->setWhatsThis(tr("Pick the challenge to play")); - lstChallenges->setStyleSheet(style); + lstChallenges ->setObjectName("trainingList"); lstScenarios= new QListWidget(this); lstScenarios->setWhatsThis(tr("Pick the scenario to play")); - lstScenarios->setStyleSheet(style); + lstScenarios->setObjectName("trainingList"); tbw->addTab(lstTrainings, tr("Trainings")); tbw->addTab(lstChallenges, tr("Challenges"));