diff options
author | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2009-11-05 14:18:35 (GMT) |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2009-11-06 14:43:16 (GMT) |
commit | 98e0b95581f46b94773a55195e0e67a466c333ed (patch) | |
tree | 062707bdf2ef4ed19ed0124a77b7abf7099f2b22 /examples/tools | |
parent | 863369deceeb254ea71724a247953fd0760ae30b (diff) | |
download | Qt-98e0b95581f46b94773a55195e0e67a466c333ed.zip Qt-98e0b95581f46b94773a55195e0e67a466c333ed.tar.gz Qt-98e0b95581f46b94773a55195e0e67a466c333ed.tar.bz2 |
API review: QRegExp::numCaptures() -> QRegExp::captureCount()
QRegExp::numCaptures() is marked as obsolete.
Replaced all usage in Qt and test-cases.
Reviewed-by: Andreas Aardal Hanssen
Diffstat (limited to 'examples/tools')
-rw-r--r-- | examples/tools/regexp/regexpdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tools/regexp/regexpdialog.cpp b/examples/tools/regexp/regexpdialog.cpp index 08c7a97..3becc2b 100644 --- a/examples/tools/regexp/regexpdialog.cpp +++ b/examples/tools/regexp/regexpdialog.cpp @@ -180,8 +180,8 @@ void RegExpDialog::refresh() indexEdit->setText(QString::number(rx.indexIn(text))); matchedLengthEdit->setText(QString::number(rx.matchedLength())); for (int i = 0; i < MaxCaptures; ++i) { - captureLabels[i]->setEnabled(i <= rx.numCaptures()); - captureEdits[i]->setEnabled(i <= rx.numCaptures()); + captureLabels[i]->setEnabled(i <= rx.captureCount()); + captureEdits[i]->setEnabled(i <= rx.captureCount()); captureEdits[i]->setText(rx.cap(i)); } |