QTfrontend/ui/page/pagetraining.cpp
changeset 13632 4c49a4944884
parent 13274 e381f5260b45
child 13645 fc46cb95c6d7
--- a/QTfrontend/ui/page/pagetraining.cpp	Tue Aug 07 16:07:13 2018 +0200
+++ b/QTfrontend/ui/page/pagetraining.cpp	Tue Aug 07 16:23:51 2018 +0200
@@ -56,7 +56,10 @@
 // right column
 
     // info area (caption on top, description below)
+    QWidget * infoWidget = new QWidget();
     QVBoxLayout * infoLayout = new QVBoxLayout();
+    infoWidget->setObjectName("trainingInfo");
+    infoWidget->setLayout(infoLayout);
 
     lblCaption = new QLabel();
     lblCaption->setMinimumWidth(360);
@@ -70,8 +73,8 @@
     infoLayout->addWidget(lblCaption);
     infoLayout->addWidget(lblDescription);
 
-    pageLayout->addLayout(infoLayout, 0, 1);
-    pageLayout->setAlignment(infoLayout, Qt::AlignLeft);
+    pageLayout->addWidget(infoWidget, 0, 1);
+    pageLayout->setAlignment(infoWidget, Qt::AlignLeft);
 
 
     // tab widget containing all lists