Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
FieldFilter Class Reference

Class that represent a filter on DomItem, when dumping or comparing. More...

+ Collaboration diagram for FieldFilter:

Detailed Description

Class that represent a filter on DomItem, when dumping or comparing.

DomItem can be duped or compared, but often one is interested only in a subset of them, FieldFilter is a simple way to select a subset of them. It uses two basic elements: the type of the object (internalKind) and the name of fields.

A basic filter can be represented by <op><typeName>:<fieldName> or <op><fieldName> where op is either + or - (if the matching elements should be added or removed) Both typeName and fieldName can be the empty string (meaning any value matches).

Basic filters are ordered from the most specific to the least specific as follow: type+field > type > field > empty. When combining several filters the most specific always wins, so -code,+ScriptExpression:code is the same as +ScriptExpression:code,-code and means that normally the field code is not outputted but for a ScriptExpression DomItem it is.

It is possible to get the string representation of the current filter with FieldFilter::describeFieldsFilter(), and change the current filter with FieldFilter::addFilter(), but after it one should call FieldFilter::setFiltred() to ensure that the internal cache used to speed up comparisons is correct.


The documentation for this class was generated from the following file: