qt5base-lts/examples/widgets/tools/regularexpression
Friedemann Kleint ee8b61bcf5 QRegularExpression example: Handle empty patterns
Previously, when clearing the pattern by clicking the clear
button, the result match list would display a list of empty
matches since apparently an empty pattern matches as many
times as the subject is long. This is confusing when using the
tool.

Restructure RegularExpressionDialog::refresh() so that it bails
out if the pattern is empty or invalid.

Change-Id: I8119a75db50cead3f64394016e3390a9bf7d0bf7
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
2017-02-09 08:16:43 +00:00
..
images Add QRegularExpression based regexp tool 2015-04-02 13:19:30 +00:00
main.cpp Unify license header usage. 2016-03-29 10:20:03 +00:00
regularexpression.pro Add QRegularExpression based regexp tool 2015-04-02 13:19:30 +00:00
regularexpression.qrc Add QRegularExpression based regexp tool 2015-04-02 13:19:30 +00:00
regularexpressiondialog.cpp QRegularExpression example: Handle empty patterns 2017-02-09 08:16:43 +00:00
regularexpressiondialog.h QRegularExpression example: Handle empty patterns 2017-02-09 08:16:43 +00:00