pub struct MatchFlag(/* private fields */);Expand description
This enum describes the type of matches that can be used when searching for items in a model.
C++ enum: Qt::MatchFlag.
This enum describes the type of matches that can be used when searching for items in a model.
The MatchFlags type is a typedef for QFlags<MatchFlag>. It stores an OR combination of MatchFlag values.
See also QString::compare() and QRegExp.
Implementations§
Source§impl MatchFlag
impl MatchFlag
Sourcepub const MatchExactly: MatchFlag
pub const MatchExactly: MatchFlag
Performs QVariant-based matching. (C++ enum variant: MatchExactly = 0)
Sourcepub const MatchContains: MatchFlag
pub const MatchContains: MatchFlag
The search term is contained in the item. (C++ enum variant: MatchContains = 1)
Sourcepub const MatchStartsWith: MatchFlag
pub const MatchStartsWith: MatchFlag
The search term matches the start of the item. (C++ enum variant: MatchStartsWith = 2)
Sourcepub const MatchEndsWith: MatchFlag
pub const MatchEndsWith: MatchFlag
The search term matches the end of the item. (C++ enum variant: MatchEndsWith = 3)
Sourcepub const MatchRegExp: MatchFlag
pub const MatchRegExp: MatchFlag
Performs string-based matching using a regular expression as the search term. (C++ enum variant: MatchRegExp = 4)
Sourcepub const MatchWildcard: MatchFlag
pub const MatchWildcard: MatchFlag
Performs string-based matching using a string with wildcards as the search term. (C++ enum variant: MatchWildcard = 5)
Sourcepub const MatchFixedString: MatchFlag
pub const MatchFixedString: MatchFlag
Performs string-based matching. String-based comparisons are case-insensitive unless the MatchCaseSensitive flag is also specified. (C++ enum variant: MatchFixedString = 8)
Sourcepub const MatchCaseSensitive: MatchFlag
pub const MatchCaseSensitive: MatchFlag
The search is case sensitive. (C++ enum variant: MatchCaseSensitive = 16)
Sourcepub const MatchWrap: MatchFlag
pub const MatchWrap: MatchFlag
Perform a search that wraps around, so that when the search reaches the last item in the model, it begins again at the first item and continues until all items have been examined. (C++ enum variant: MatchWrap = 32)
Sourcepub const MatchRecursive: MatchFlag
pub const MatchRecursive: MatchFlag
Searches the entire hierarchy. (C++ enum variant: MatchRecursive = 64)