mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
settings_dialog: enable LLE List multiselection
This commit is contained in:
parent
37c26b77ee
commit
1c3b9754aa
1 changed files with 8 additions and 0 deletions
|
@ -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(libModeBG, static_cast<void(QButtonGroup::*)(int)>(&QButtonGroup::buttonClicked), l_OnLibButtonClicked);
|
||||||
connect(ui->searchBox, &QLineEdit::textChanged, l_OnSearchBoxTextChanged);
|
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();
|
int buttid = libModeBG->checkedId();
|
||||||
if (buttid != -1)
|
if (buttid != -1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue