-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
: QDoubleSpinBox( parent ),
myCleared( false )
{
+#if !defined(GLOBAL_DOUBLE_CONVERSION)
// VSR 01/07/2010: Disable thousands separator for spin box
// (to avoid incosistency of double-2-string and string-2-double conversion)
+ // see issue 14540 (old id 21219)
QLocale loc;
loc.setNumberOptions(loc.numberOptions() | QLocale::OmitGroupSeparator | QLocale::RejectGroupSeparator);
setLocale(loc);
+#endif
// Use precision equal to default Qt decimals
myPrecision = decimals();
: QDoubleSpinBox( parent ),
myCleared( false )
{
+#if !defined(GLOBAL_DOUBLE_CONVERSION)
// VSR 01/07/2010: Disable thousands separator for spin box
// (to avoid incosistency of double-2-string and string-2-double conversion)
+ // see issue 14540 (old id 21219)
QLocale loc;
loc.setNumberOptions(loc.numberOptions() | QLocale::OmitGroupSeparator | QLocale::RejectGroupSeparator);
setLocale(loc);
+#endif
// Use precision equal to default Qt decimals
myPrecision = decimals();
myCleared( false ),
myPrecision( prec )
{
+#if !defined(GLOBAL_DOUBLE_CONVERSION)
// VSR 01/07/2010: Disable thousands separator for spin box
// (to avoid incosistency of double-2-string and string-2-double conversion)
+ // see issue 14540 (old id 21219)
QLocale loc;
loc.setNumberOptions(loc.numberOptions() | QLocale::OmitGroupSeparator | QLocale::RejectGroupSeparator);
setLocale(loc);
+#endif
setDecimals( dec );
setMinimum( min );
{
QString pref = this->prefix();
QString suff = this->suffix();
- uint overhead = pref.length() + suff.length();
+ int overhead = pref.length() + suff.length();
QValidator::State state = QValidator::Invalid;
QDoubleValidator v (NULL);