mirror of
https://github.com/leozide/leocad
synced 2024-12-27 21:58:37 +01:00
Fix for Qt4.
This commit is contained in:
parent
35ce03dd05
commit
8f8a93e835
1 changed files with 1 additions and 1 deletions
|
@ -648,7 +648,7 @@ void lcQPreferencesDialog::on_KeyboardFilterEdit_textEdited(const QString& Text)
|
||||||
{
|
{
|
||||||
std::function<bool(QTreeWidgetItem*,bool)> ShowItems = [&ShowItems, &Text](QTreeWidgetItem* ParentItem, bool ForceVisible)
|
std::function<bool(QTreeWidgetItem*,bool)> ShowItems = [&ShowItems, &Text](QTreeWidgetItem* ParentItem, bool ForceVisible)
|
||||||
{
|
{
|
||||||
ForceVisible |= (bool)(ParentItem->text(0).contains(Text, Qt::CaseInsensitive) | ParentItem->text(1).contains(Text, Qt::CaseInsensitive));
|
ForceVisible |= (bool)ParentItem->text(0).contains(Text, Qt::CaseInsensitive) | (bool)ParentItem->text(1).contains(Text, Qt::CaseInsensitive);
|
||||||
bool Visible = ForceVisible;
|
bool Visible = ForceVisible;
|
||||||
|
|
||||||
for (int ChildIdx = 0; ChildIdx < ParentItem->childCount(); ChildIdx++)
|
for (int ChildIdx = 0; ChildIdx < ParentItem->childCount(); ChildIdx++)
|
||||||
|
|
Loading…
Reference in a new issue