[LyX/master] Fix Qt deprecation warning for isItemSelected()
Scott Kostyshak
skostysh at lyx.org
Fri Mar 6 01:20:24 UTC 2020
commit b38a452efb81cd0f4429aed7ae0fbe947e7e348e
Author: Scott Kostyshak <skostysh at lyx.org>
Date: Thu Mar 5 20:36:09 2020 -0500
Fix Qt deprecation warning for isItemSelected()
These methods are related to the deprecated setItemSelected() and
setItemHidden() methods that were converted at 24926b2e.
---
src/frontends/qt/GuiRef.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt/GuiRef.cpp b/src/frontends/qt/GuiRef.cpp
index cb4baf9..c1870be 100644
--- a/src/frontends/qt/GuiRef.cpp
+++ b/src/frontends/qt/GuiRef.cpp
@@ -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));
More information about the lyx-cvs
mailing list