Doc: fix QRegularExpression::wildcardToRegularExpression snippet

The sample output from wildcardToRegularExpression was from an earlier
version of the implementation. This patch fixes this.

Change-Id: I48108add01aafed69490ef2527c1ea6a209b220b
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
This commit is contained in:
Samuel Gaist 2018-08-25 16:00:23 +02:00
parent 989e86074a
commit b6022eccc4

View File

@ -353,7 +353,10 @@ while (i.hasNext()) {
{
//! [31]
QString wildcard = QRegularExpression::wildcardToRegularExpression("*.jpeg");
// wilcard == ".*\.jpeg"
// Will match files with names like:
// foo.jpeg
// f_o_o.jpeg
// föö.jpeg
//! [31]
}