]> git.lyx.org Git - features.git/commitdiff
Fix Qt deprecation warning for setItemHidden()
authorScott Kostyshak <skostysh@lyx.org>
Fri, 6 Mar 2020 01:29:26 +0000 (20:29 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 6 Mar 2020 01:38:31 +0000 (20:38 -0500)
Consistent with commit 24926b2e.

src/frontends/qt/GuiPrefs.cpp

index 6b00357446e64aeee90d75ce5534dcf34744a8ef..2777300b6adbc24856a1c23e26483ef93d063d6d 100644 (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])) {