summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/textpropertyeditor_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 08:49:58 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-11 09:23:57 +0200
commitfac0dcbeef6a0c23e780b9751c17883ec9918d6f (patch)
tree82ba10f4f93ebb02968c0e65a90f3daeea552b83 /src/designer/src/lib/shared/textpropertyeditor_p.h
parentdbbe4be100e757ff17ca6b8533946c7b55880f8d (diff)
Qt Designer: introduce member initialization
Fix warnings emitted by clang, use default constructors where applicable. Initialize remaining member variables about which clang warns about missing initialization in the constructor. Change-Id: Ic23a1f36f7507dc728ca6daf0d2067727125c0a9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/lib/shared/textpropertyeditor_p.h')
-rw-r--r--src/designer/src/lib/shared/textpropertyeditor_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/lib/shared/textpropertyeditor_p.h b/src/designer/src/lib/shared/textpropertyeditor_p.h
index 7b79166a9..25b7f543d 100644
--- a/src/designer/src/lib/shared/textpropertyeditor_p.h
+++ b/src/designer/src/lib/shared/textpropertyeditor_p.h
@@ -128,13 +128,13 @@ namespace qdesigner_internal {
void setRegularExpressionValidator(const QString &pattern);
void markIntermediateState();
- TextPropertyValidationMode m_validationMode;
- UpdateMode m_updateMode;
+ TextPropertyValidationMode m_validationMode = ValidationSingleLine;
+ UpdateMode m_updateMode = UpdateAsYouType;
PropertyLineEdit* m_lineEdit;
// Cached text containing real newline characters.
QString m_cachedText;
- bool m_textEdited;
+ bool m_textEdited = false;
};
}