diff options
-rw-r--r-- | .qmake.conf | 2 | ||||
-rw-r--r-- | src/winextras/qwintaskbarbutton.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.qmake.conf b/.qmake.conf index 2108ac6..138038d 100644 --- a/.qmake.conf +++ b/.qmake.conf @@ -1,3 +1,3 @@ load(qt_build_config) -MODULE_VERSION = 5.9.3 +MODULE_VERSION = 5.10.0 diff --git a/src/winextras/qwintaskbarbutton.cpp b/src/winextras/qwintaskbarbutton.cpp index f687f68..cedca35 100644 --- a/src/winextras/qwintaskbarbutton.cpp +++ b/src/winextras/qwintaskbarbutton.cpp @@ -166,7 +166,7 @@ void QWinTaskbarButtonPrivate::_q_updateProgress() const int max = progressBar->maximum(); const int range = max - min; if (range > 0) { - const int value = 100 * (progressBar->value() - min) / range; + const int value = qRound(double(100) * (double(progressBar->value() - min)) / double(range)); pTbList->SetProgressValue(handle(), ULONGLONG(value), 100); } } |