From 48794f5057f49373a7b8803db8bab7131e04575c Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 2 Apr 2020 12:57:56 +0200 Subject: Port example over to QRegularExpression Change-Id: I1e15bfa0a2973aabcad78f3eba4bb4903f8f3f6f Reviewed-by: Alex Blasche --- examples/widgets/doc/src/customsortfiltermodel.qdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/widgets/doc/src') diff --git a/examples/widgets/doc/src/customsortfiltermodel.qdoc b/examples/widgets/doc/src/customsortfiltermodel.qdoc index 97725ead04..ebbd29a921 100644 --- a/examples/widgets/doc/src/customsortfiltermodel.qdoc +++ b/examples/widgets/doc/src/customsortfiltermodel.qdoc @@ -250,15 +250,15 @@ The \c textFilterChanged() function is called whenever the user changes the filter pattern or the case sensitivity. - We first retrieve the preferred syntax (the QRegExp::PatternSyntax + We first retrieve the preferred syntax (the FilterWidget::PatternSyntax enum is used to interpret the meaning of the given pattern), then we determine the preferred case sensitivity. Based on these preferences and the current filter pattern, we set the proxy - model's \l {QSortFilterProxyModel::}{filterRegExp} property. The - \l {QSortFilterProxyModel::}{filterRegExp} property holds the + model's \l {QSortFilterProxyModel::}{filterRegularExpression} property. The + \l {QSortFilterProxyModel::}{filterRegularExpression} property holds the regular expression used to filter the contents of the source model. Note that calling QSortFilterProxyModel's \l - {QSortFilterProxyModel::}{setFilterRegExp()} function also updates + {QSortFilterProxyModel::}{setFilterRegularExpression()} function also updates the model. \snippet itemviews/customsortfiltermodel/window.cpp 9 -- cgit v1.2.3