summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools/regularexpression/regularexpressiondialog.h
Commit message (Collapse)AuthorAgeFilesLines
* Examples/RegularExpressionDialog: remove deprecated optionsChristian Ehrlicher2020-05-231-2/+0
| | | | | | | | | Remove the two deprecated (and non-functional) options OptimizeOnFirstUsageOption and DontAutomaticallyOptimizeOption. Change-Id: Id5191cee84bf7b1ae65f828a981f93d98db23f53 Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* Cleanup QtWidgets (tools) examplesChristian Ehrlicher2019-09-111-1/+1
| | | | | | | | | | | | | | Cleanup QtWidgets tools examples: - use member-init (clang-tidy) - fix includes/don't include QtWidgets globally - include own header first - use nullptr (clang-tidy) - avoid c-style casts - use QVector instead QList - use QItemDelegate instead QStyledItemDelegate Change-Id: Ibe9440cdf711e5cc2138c054864edebe1fc95731 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* regularexpression example: Add raw string literal displayFriedemann Kleint2018-03-171-1/+1
| | | | | | | | | | Factor out the line edit displaying the code to a class and add another instance for displaying raw string literals. Task-number: QTBUG-60635 Change-Id: I4614e4a56e355bad5158523c58edf784868dbf4d Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
* QRegularExpression example: Handle empty patternsFriedemann Kleint2017-02-091-0/+1
| | | | | | | | | | | | | | 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>
* Unify license header usage.Jani Heikkinen2016-03-291-5/+15
| | | | | | | | | Update files using old header.LGPL3 to header.LGPL Update files using old FDL template to use new one Update files using old BSD template to use new one Change-Id: I36a78272516f9953d02956522f285b40adfc8915 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Add QRegularExpression based regexp toolSamuel Gaist2015-04-021-0/+100
Currently only the QRegExp based regexp tool is available to help build regular expression. This patch aims to add the equivalent that use the new QRegularExpression class. Change-Id: Ie5f711640b32a6d10ce44d2c7795062c1aacce3f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>