QIfFilterTerm Class

The QIfFilterTerm is the representation of a filter. More...

Header: #include <QIfFilterTerm>
qmake: QT += interfaceframework
Inherits: QIfAbstractQueryTerm

Public Types

enum Operator { Equals, EqualsCaseInsensitive, Unequals, GreaterThan, GreaterEquals, …, LowerEquals }

Public Functions

bool isNegated() const
QIfFilterTerm::Operator operatorType() const
QString propertyName() const
QVariant value() const

Reimplemented Public Functions

virtual QString toString() const override
virtual QIfAbstractQueryTerm::Type type() const override

Detailed Description

The filter is either in the form:

identifier operator value

or:

value operator identifier

Member Type Documentation

enum QIfFilterTerm::Operator

ConstantValueDescription
QIfFilterTerm::Equals0Tests whether the value from the identifier is the equal to the passed value. In case of a string the comparison is case-senstitive.
QIfFilterTerm::EqualsCaseInsensitive1Tests whether the value from the identifier is the equal to the passed value, but the comparison is done case-insensitive.
QIfFilterTerm::Unequals2Tests whether the value from the identifier is the unequal to the passed value. In case of a string the comparison is case-senstitive.
QIfFilterTerm::GreaterThan3Tests whether the value from the identifier is greater than the passed value. This does only work for numbers.
QIfFilterTerm::GreaterEquals4Tests whether the value from the identifier is greater than or equal to the passed value. This does only work for numbers.
QIfFilterTerm::LowerThan5Tests whether the value from the identifier is lower than the passed value. This does only work for numbers.
QIfFilterTerm::LowerEquals6Tests whether the value from the identifier is lower than or equal to the passed value. This does only work for numbers.

Member Function Documentation

bool QIfFilterTerm::isNegated() const

Returns true when this term is negated, otherwise false

QIfFilterTerm::Operator QIfFilterTerm::operatorType() const

Returns the operator of this filter.

QString QIfFilterTerm::propertyName() const

Returns the property this filter should act on.

[override virtual] QString QIfFilterTerm::toString() const

Reimplements: QIfAbstractQueryTerm::toString() const.

[override virtual] QIfAbstractQueryTerm::Type QIfFilterTerm::type() const

Reimplements: QIfAbstractQueryTerm::type() const.

QVariant QIfFilterTerm::value() const

Returns the value of the filter.

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.