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
)