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
parent
dd52fd0024
commit
acacca859c
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue