Index: sources/model/MAbstract.cpp =================================================================== diff -u -r97d593e2e7adb36f2f9f97f9bb9958dcef740bc1 -r2ef03b2ce51b4dc507f66e9671953a8e0824bde9 --- sources/model/MAbstract.cpp (.../MAbstract.cpp) (revision 97d593e2e7adb36f2f9f97f9bb9958dcef740bc1) +++ sources/model/MAbstract.cpp (.../MAbstract.cpp) (revision 2ef03b2ce51b4dc507f66e9671953a8e0824bde9) @@ -1,14 +1,14 @@ /*! * - * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. + * Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file MAbstract.cpp * \author (last) Behrouz NematiPour - * \date (last) 16-Oct-2020 - * \author (original) Behrouz NematiPour + * \date (last) 04-Aug-2021 + * \author (original) Behrouz NemaiPour * \date (original) 04-Jul-2020 * */ @@ -19,7 +19,7 @@ using namespace Model; -// #define ROUND_FLOATS +#define ROUND_FLOATS const QMap MAbstract::_typeText = MAbstract::_typeText_make(); const QMap MAbstract::_unitText = MAbstract::_unitText_make(); @@ -43,7 +43,7 @@ QVariantList mParameters = parameters(); QString mString = description(); for( const auto ¶meter : mParameters ) { - if (parameter.type() == uint(QMetaType::Float)) // Qt has a mixed definition of QVariant::Type and QMetaType seems like a not fixed issue. + if (static_cast(parameter.type()) == QMetaType::Float) // Qt has a mixed definition of QVariant::Type and QMetaType seems like a not fixed issue. #ifdef ROUND_FLOATS mString += _delimiter + QString("%1").arg(parameter.toFloat(),0,'f',_precision); #else