oKcerG / SortFilterProxyModel

A nicely exposed QSortFilterProxyModel for QML
MIT License
298 stars 101 forks source link

AllOf should not read roles if one checked is already false #79

Open damianatorrpm opened 4 years ago

damianatorrpm commented 4 years ago

I am using SortFilterProxyModel once again https://github.com/oKcerG/SortFilterProxyModel/issues/60 but still there is an issue of the same kind.

         filters: [
                    ValueFilter
                    {
                        roleName: "role3"
                        value: true
                    },
                    ValueFilter
                    {
                        roleName: "role2"
                        value: true
                    },
                    ValueFilter
                    {
                        roleName: "role1"
                        value: true
                    }                    
                ]

No matter if it's AllOf or implicitly AllOf all roles and roleValues seem to be read. Yet in an AllOf it should stop reading other roles if an encountered is already false