Commit 811f74ce authored by hjk's avatar hjk
Browse files

Windows compile fix



Change-Id: I2321ae9310476f36a1b1fa36509ec92f639ee8a7
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 4a478391
......@@ -794,7 +794,7 @@ void ProgressTimer::handleTimeout()
// This maps expectation to atan(1) to Pi/4 ~= 0.78, i.e. snaps
// from 78% to 100% when expectations are met at the time the
// future finishes. That's not bad for a random choice.
const double mapped = atan2(m_currentTime, m_expectedTime);
const double mapped = atan2(double(m_currentTime), double(m_expectedTime));
const double progress = 100 * 2 * mapped / 3.14;
m_futureInterface->setProgressValue(int(progress));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment