diff options
author | Sergio Ahumada <sergio.ahumada@nokia.com> | 2011-10-30 17:34:46 +0100 |
---|---|---|
committer | Sergio Ahumada <sergio.ahumada@nokia.com> | 2011-10-31 20:20:46 +0100 |
commit | 29478a8fe7f530d5d3fb728321cdf4e3191cad83 (patch) | |
tree | eb4641e9153ce0caea316e847558ea71688c66b8 /doc/src/examples/customsortfiltermodel.qdoc | |
parent | ba92fe922244a66b4851a049af61cf9be7b1bc9d (diff) |
Doc: Fixing typos
Change-Id: I445b4cb0fe88d775c9421fbf1e8b7bb76dec0fc4
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'doc/src/examples/customsortfiltermodel.qdoc')
-rw-r--r-- | doc/src/examples/customsortfiltermodel.qdoc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/src/examples/customsortfiltermodel.qdoc b/doc/src/examples/customsortfiltermodel.qdoc index e145e82b5b..8c402ac972 100644 --- a/doc/src/examples/customsortfiltermodel.qdoc +++ b/doc/src/examples/customsortfiltermodel.qdoc @@ -91,7 +91,7 @@ {QSortFilterProxyModel::filterAcceptsRow()}{filterAcceptsRow()} function to only accept rows with valid dates, and QSortFilterProxyModel::lessThan() to be able to sort the senders - by their email adresses. Finally, we implement a \c dateInRange() + by their email addresses. Finally, we implement a \c dateInRange() convenience function that we will use to determine if a date is valid. @@ -112,21 +112,21 @@ \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 4 - We want to sort the senders by their email adresses. The \l + We want to sort the senders by their email addresses. The \l {QSortFilterProxyModel::}{lessThan()} function is used as the < operator when sorting. The default implementation handles a collection of types including QDateTime and String, but in order - to be able to sort the senders by their email adresses we must - first identify the adress within the given string: + to be able to sort the senders by their email addresses we must + first identify the address within the given string: \snippet examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp 6 - We use QRegExp to define a pattern for the adresses we are looking + We use QRegExp to define a pattern for the addresses we are looking for. The QRegExp::indexIn() function attempts to find a match in the given string and returns the position of the first match, or -1 if there was no match. If the given string contains the pattern, we use QRegExp's \l {QRegExp::cap()}{cap()} function to - retrieve the actual adress. The \l {QRegExp::cap()}{cap()} + retrieve the actual address. The \l {QRegExp::cap()}{cap()} function returns the text captured by the \e nth subexpression. The entire match has index 0 and the parenthesized subexpressions have indexes starting from 1 (excluding |