From 877af78d914c1feccd31b5b9991126d3b76e9f5c Mon Sep 17 00:00:00 2001 From: Marie-Pierre Oudot Date: Wed, 6 Mar 2024 09:07:11 +0100 Subject: [PATCH] Initialize new attribute --- src/QtUtil/QtDoubleTextField.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/QtUtil/QtDoubleTextField.cpp b/src/QtUtil/QtDoubleTextField.cpp index bc48e2e..d1dbeca 100644 --- a/src/QtUtil/QtDoubleTextField.cpp +++ b/src/QtUtil/QtDoubleTextField.cpp @@ -19,6 +19,7 @@ USE_ENCODING_AUTODETECTION QtDoubleTextField::QtDoubleTextField (QWidget* parent, bool autoValidation, const char* name) : QtValidatedTextField (parent, autoValidation, name) + , _keepIosBaseDefault(false) { createGui ( ); } // QtDoubleTextField::QtDoubleTextField @@ -26,14 +27,16 @@ QtDoubleTextField::QtDoubleTextField (QWidget* parent, bool autoValidation, cons QtDoubleTextField::QtDoubleTextField (double value, QWidget* parent, bool autoValidation, const char* name) : QtValidatedTextField (parent, autoValidation, name) + , _keepIosBaseDefault(false) { createGui ( ); setValue (value); } // QtDoubleTextField::QtDoubleTextField -QtDoubleTextField::QtDoubleTextField (const QtDoubleTextField&) +QtDoubleTextField::QtDoubleTextField (const QtDoubleTextField& field) : QtValidatedTextField (0, 0) + , _keepIosBaseDefault(field._keepIosBaseDefault) { assert (0 && "QtDoubleTextField::QtDoubleTextField is not allowed."); } // QtDoubleTextField::QtDoubleTextField (const QtDoubleTextField&)