mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
Fix for Qt4.
This commit is contained in:
parent
9809cbc919
commit
4885bb59f1
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 |= ParentItem->text(0).contains(Text, Qt::CaseInsensitive) | ParentItem->text(1).contains(Text, Qt::CaseInsensitive);
|
ForceVisible |= (bool)ParentItem->text(0).contains(Text, Qt::CaseInsensitive) | 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