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 /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 'tools')
-rw-r--r-- | tools/designer/src/designer/qdesigner_formwindow.cpp | 2 | ||||
-rw-r--r-- | tools/makeqpf/mainwindow.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/designer/src/designer/qdesigner_formwindow.cpp b/tools/designer/src/designer/qdesigner_formwindow.cpp index b2af257..05937cd 100644 --- a/tools/designer/src/designer/qdesigner_formwindow.cpp +++ b/tools/designer/src/designer/qdesigner_formwindow.cpp @@ -182,7 +182,7 @@ int QDesignerFormWindow::getNumberOfUntitledWindows() const if (rx.indexIn(title) != -1) { if (maxUntitled == 0) ++maxUntitled; - if (rx.numCaptures() > 1) { + if (rx.captureCount() > 1) { const QString numberCapture = rx.cap(2); if (!numberCapture.isEmpty()) maxUntitled = qMax(numberCapture.toInt(), maxUntitled); diff --git a/tools/makeqpf/mainwindow.cpp b/tools/makeqpf/mainwindow.cpp index 8fa372b..45ea0a3 100644 --- a/tools/makeqpf/mainwindow.cpp +++ b/tools/makeqpf/mainwindow.cpp @@ -269,7 +269,7 @@ void MainWindow::populateCharacterRanges() if (line.isEmpty() || line.startsWith(QLatin1Char('#'))) continue; - if (!rangeExpr.exactMatch(line) || rangeExpr.numCaptures() != 3) + if (!rangeExpr.exactMatch(line) || rangeExpr.captureCount() != 3) continue; QPF::CharacterRange range; |