summaryrefslogtreecommitdiffstats
path: root/examples/tools/regexp/regexpdialog.cpp
diff options
context:
space:
mode:
authorMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-11-09 12:03:20 (GMT)
committerMorten Engvoldsen <morten.engvoldsen@nokia.com>2009-11-09 12:03:20 (GMT)
commitcf417f787454f131f35248bb0c1294dadd777b45 (patch)
treee5ad2f54887aa695c6f66ae2c305ab75ccabdac0 /examples/tools/regexp/regexpdialog.cpp
parenta7577f8c3ae3a025384d8d19fdf3575ef141a70b (diff)
parente07878a9bcccbf063650272329c0aca14290b8e3 (diff)
downloadQt-cf417f787454f131f35248bb0c1294dadd777b45.zip
Qt-cf417f787454f131f35248bb0c1294dadd777b45.tar.gz
Qt-cf417f787454f131f35248bb0c1294dadd777b45.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'examples/tools/regexp/regexpdialog.cpp')
-rw-r--r--examples/tools/regexp/regexpdialog.cpp4
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));
}