-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
: QSpinBox( 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
setCorrectionMode( QSpinBox::CorrectToNearestValue );
connect( lineEdit(), SIGNAL( textChanged( const QString& ) ),
: QSpinBox( 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
setMinimum( min );
setMaximum( max );