- new QGroupBox(1, Qt::Horizontal, tr("SELECTED_GROUPS"), theParent);
-
- myListBox = new QListBox(aMainGrp);
- myListBox->setMinimumHeight(100);
- myListBox->setSelectionMode(QListBox::NoSelection);
- myListBox->setRowMode(QListBox::FitToWidth);
-
+ new QGroupBox(tr("SELECTED_GROUPS"), theParent);
+ QVBoxLayout* aLay = new QVBoxLayout(aMainGrp);
+ aLay->setMargin(MARGIN);
+ aLay->setSpacing(SPACING);
+
+ myListBox = new QListWidget(aMainGrp);
+ myListBox->setMinimumSize(150, 100);
+ myListBox->setSelectionMode(QListWidget::NoSelection);
+ //myListBox->setRowMode(QListBox::FitToWidth);
+ myListBox->setFlow(QListWidget::LeftToRight);
+ myListBox->setWrapping(true);
+
+ aLay->addWidget(myListBox);
+