Fix Qt deprecation warning for setItemHidden()

Consistent with commit 24926b2e.
This commit is contained in:
Scott Kostyshak 2020-03-05 20:29:26 -05:00
parent 27ca2bd950
commit 273af8803d

View File

@ -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])) {