summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tools/regularexpression/regularexpressiondialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/tools/regularexpression/regularexpressiondialog.h')
-rw-r--r--examples/widgets/tools/regularexpression/regularexpressiondialog.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/widgets/tools/regularexpression/regularexpressiondialog.h b/examples/widgets/tools/regularexpression/regularexpressiondialog.h
index b0db4d884c..b5d592c3c2 100644
--- a/examples/widgets/tools/regularexpression/regularexpressiondialog.h
+++ b/examples/widgets/tools/regularexpression/regularexpressiondialog.h
@@ -54,6 +54,7 @@
#define REGULAREXPRESSIONDIALOG_H
#include <QDialog>
+#include <QRegularExpression>
QT_BEGIN_NAMESPACE
class QCheckBox;
@@ -72,18 +73,25 @@ class RegularExpressionDialog : public QDialog
public:
RegularExpressionDialog(QWidget *parent = nullptr);
+private slots:
+ void updateReplacement();
+
private:
void refresh();
void setupUi();
QWidget *setupLeftUi();
- QWidget *setupRightUi();
+ QWidget *setupTextUi();
+ QWidget *setupOptionsUi();
+ QWidget *setupInfoUi();
void setResultUiEnabled(bool enabled);
QLineEdit *patternLineEdit;
QLineEdit *rawStringLiteralLineEdit;
QLineEdit *escapedPatternLineEdit;
+ QLineEdit *replacementLineEdit;
QPlainTextEdit *subjectTextEdit;
+ QPlainTextEdit *replacementTextEdit;
QCheckBox *caseInsensitiveOptionCheckBox;
QCheckBox *dotMatchesEverythingOptionCheckBox;
@@ -104,6 +112,8 @@ private:
QLabel *regexpStatusLabel;
QTreeWidget *namedGroupsTreeWidget;
+
+ QRegularExpression regularExpression;
};
#endif