Doc: update QStringList doc with missing QRegularExpression reference

The documentation of QStringList is missing some mention of
QRegularExpression as well as still using QRegExp in some sample code.
This patch fixes that.

Change-Id: I4a7c9fe8e5ae7c73497192bb71d1fa66ee864bd2
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
bb10
Samuel Gaist 2017-01-22 00:18:58 +01:00
parent dd52fd0024
commit acacca859c
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ Widget::Widget(QWidget *parent)
//! [6]
//! [7]
QStringList monospacedFonts = fonts.filter(QRegExp("Courier|Fixed"));
QStringList monospacedFonts = fonts.filter(QRegularExpression("Courier|Fixed"));
//! [7]
//! [8]

View File

@ -143,8 +143,8 @@ QT_BEGIN_NAMESPACE
\snippet qstringlist/main.cpp 6
The argument to split can be a single character, a string, or a
QRegExp.
The argument to split can be a single character, a string, a
QRegularExpression or a (deprecated) QRegExp.
In addition, the \l {QStringList::operator+()}{operator+()}
function allows you to concatenate two string lists into one. To