From 273af8803dd14ffa1b1454c263fa3ac80c9798a6 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Thu, 5 Mar 2020 20:29:26 -0500 Subject: [PATCH] Fix Qt deprecation warning for setItemHidden() Consistent with commit 24926b2e. --- src/frontends/qt/GuiPrefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp index 6b00357446..2777300b6a 100644 --- a/src/frontends/qt/GuiPrefs.cpp +++ b/src/frontends/qt/GuiPrefs.cpp @@ -3260,7 +3260,7 @@ void PrefShortcuts::on_searchLE_textEdited() // hide everyone (to avoid searching in matched QList repeatedly QTreeWidgetItemIterator it(shortcutsTW, QTreeWidgetItemIterator::Selectable); while (*it) - shortcutsTW->setItemHidden(*it++, true); + (*it++)->setHidden(true); // show matched items for (int i = 0; i < matched.size(); ++i) if (!isAlwaysHidden(*matched[i])) {