QIviFilterTerm Class
The QIviFilterTerm is the representation of a filter. More...
Header: | #include <QIviFilterTerm> |
qmake: | QT += ivicore |
Inherits: | QIviAbstractQueryTerm |
Public Types
enum | Operator { Equals, EqualsCaseInsensitive, Unequals, GreaterThan, GreaterEquals, …, LowerEquals } |
Public Functions
bool | isNegated() const |
QIviFilterTerm::Operator | operatorType() const |
QString | propertyName() const |
QVariant | value() const |
Reimplemented Public Functions
Detailed Description
The filter is either in the form:
identifier operator value
or:
value operator identifier
Member Type Documentation
enum QIviFilterTerm::Operator
Constant | Value | Description |
---|---|---|
QIviFilterTerm::Equals | 0 | Tests whether the value from the identifier is the equal to the passed value. In case of a string the comparison is case-senstitive. |
QIviFilterTerm::EqualsCaseInsensitive | 1 | Tests whether the value from the identifier is the equal to the passed value, but the comparison is done case-insensitive. |
QIviFilterTerm::Unequals | 2 | Tests whether the value from the identifier is the unequal to the passed value. In case of a string the comparison is case-senstitive. |
QIviFilterTerm::GreaterThan | 3 | Tests whether the value from the identifier is greater than the passed value. This does only work for numbers. |
QIviFilterTerm::GreaterEquals | 4 | Tests whether the value from the identifier is greater than or equal to the passed value. This does only work for numbers. |
QIviFilterTerm::LowerThan | 5 | Tests whether the value from the identifier is lower than the passed value. This does only work for numbers. |
QIviFilterTerm::LowerEquals | 6 | Tests 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 QIviFilterTerm::isNegated() const
Returns true
when this term is negated, otherwise false
QIviFilterTerm::Operator QIviFilterTerm::operatorType() const
Returns the operator of this filter.
QString QIviFilterTerm::propertyName() const
Returns the property this filter should act on.
[override virtual]
QString QIviFilterTerm::toString() const
Reimplements: QIviAbstractQueryTerm::toString() const.
[override virtual]
QIviAbstractQueryTerm::Type QIviFilterTerm::type() const
Reimplements: QIviAbstractQueryTerm::type() const.
QVariant QIviFilterTerm::value() const
Returns the value of the filter.
© 2020 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.