mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix Qt deprecation warning for setItemHidden()
Consistent with commit 24926b2e
.
This commit is contained in:
parent
27ca2bd950
commit
273af8803d
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user