settings_dialog: enable LLE List multiselection

This commit is contained in:
Megamouse 2017-07-13 14:46:50 +02:00 committed by Ivan
parent 37c26b77ee
commit 1c3b9754aa

View File

@ -349,6 +349,14 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> xSettings, const
connect(libModeBG, static_cast<void(QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), l_OnLibButtonClicked);
connect(ui->searchBox, &QLineEdit::textChanged, l_OnSearchBoxTextChanged);
// enable multiselection (there must be a better way)
connect(ui->lleList, &QListWidget::itemChanged, [&](QListWidgetItem* item){
for (auto cb : ui->lleList->selectedItems())
{
cb->setCheckState(item->checkState());
}
});
int buttid = libModeBG->checkedId();
if (buttid != -1)
{