diff --git a/src/mvvmcore/message.cpp b/src/mvvmcore/message.cpp index 9cec27c..8fd3b24 100644 --- a/src/mvvmcore/message.cpp +++ b/src/mvvmcore/message.cpp @@ -3,8 +3,7 @@ #include "coreapp.h" #include "qtmvvm_logging_p.h" -#include - +#include #include using namespace QtMvvm; @@ -399,7 +398,7 @@ void ProgressControl::setProgress(int progress) void ProgressControl::setProgress(double progressPercent) { Q_ASSERT_X(progressPercent >= 0.0 && progressPercent <= 1.0, Q_FUNC_INFO, "progressPercent must be in the range [0.0,1.0]"); - setProgress(static_cast(std::round((d->maximum - d->minimum) * progressPercent + d->minimum))); + setProgress(static_cast(qRound((d->maximum - d->minimum) * progressPercent + d->minimum))); } // ------------- Private Implementation ------------- diff --git a/tools/settingsgenerator/qpmx.json b/tools/settingsgenerator/qpmx.json index 972924c..3b2e020 100644 --- a/tools/settingsgenerator/qpmx.json +++ b/tools/settingsgenerator/qpmx.json @@ -3,7 +3,7 @@ { "package": "de.skycoder42.qxmlcodegen", "provider": "qpm", - "version": "1.1.2" + "version": "1.1.3" } ], "license": {