- QSpacerItem* aSpacer = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
- aLay->addItem(aSpacer, 4, 1);
+ myListBox = new QListWidget(mySelGrp);
+ myListBox->setSelectionMode(QListWidget::ExtendedSelection);
+ myListBox->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
+ myListBox->installEventFilter(this);
+
+ myFilterBtn = new QPushButton(tr("FILTER"), mySelGrp);
+ myAddBtn = new QPushButton(tr("ADD"), mySelGrp);
+ myRemoveBtn = new QPushButton(tr("REMOVE"), mySelGrp);
+ mySortBtn = new QPushButton(tr("SORT_LIST"), mySelGrp);
+
+ int row = mySelGrpLayout->rowCount();
+ mySelGrpLayout->addWidget(myListBox, row, 0, 6, 1);
+ mySelGrpLayout->addWidget(myFilterBtn, row, 1);
+ mySelGrpLayout->addWidget(myAddBtn, row+2, 1);
+ mySelGrpLayout->addWidget(myRemoveBtn, row+3, 1);
+ mySelGrpLayout->addWidget(mySortBtn, row+5, 1);
+ mySelGrpLayout->setRowMinimumHeight(row+1, 10);
+ mySelGrpLayout->setRowMinimumHeight(row+4, 10);
+ mySelGrpLayout->setRowStretch(row+1, 5);
+ mySelGrpLayout->setRowStretch(row+4, 5);