mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
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:
parent
273af8803d
commit
b38a452efb
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user