Fix Qt deprecation warning for isItemSelected()

These methods are related to the deprecated setItemSelected() and
setItemHidden() methods that were converted at 24926b2e.
This commit is contained in:
Scott Kostyshak 2020-03-05 20:36:09 -05:00
parent 273af8803d
commit b38a452efb

View File

@ -203,7 +203,7 @@ void GuiRef::refHighlighted(QTreeWidgetItem * sel)
/* int const cur_item = refsTW->currentRow();
bool const cur_item_selected = cur_item >= 0 ?
refsLB->isSelected(cur_item) : false;*/
bool const cur_item_selected = refsTW->isItemSelected(sel);
bool const cur_item_selected = sel->isSelected();
if (cur_item_selected)
referenceED->setText(sel->text(0));
@ -239,7 +239,7 @@ void GuiRef::refSelected(QTreeWidgetItem * sel)
/* int const cur_item = refsTW->currentRow();
bool const cur_item_selected = cur_item >= 0 ?
refsLB->isSelected(cur_item) : false;*/
bool const cur_item_selected = refsTW->isItemSelected(sel);
bool const cur_item_selected = sel->isSelected();
if (cur_item_selected)
referenceED->setText(sel->text(0));