From b3a0066343ffbca8733de1e1712a65d63d987b81 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 21 Aug 2019 17:14:23 +0300 Subject: [PATCH] Fix overlay progress bar on Windows. --HG-- branch : develop --- src/app/valentina/mainwindowsnogui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/valentina/mainwindowsnogui.cpp b/src/app/valentina/mainwindowsnogui.cpp index 0d8531bb6..9db91dbf5 100644 --- a/src/app/valentina/mainwindowsnogui.cpp +++ b/src/app/valentina/mainwindowsnogui.cpp @@ -222,11 +222,11 @@ bool MainWindowsNoGUI::GenerateLayout(VLayoutGenerator& lGenerator) #if defined(Q_OS_WIN32) && QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) m_taskbarProgress->setVisible(true); m_taskbarProgress->setValue(0); - m_taskbarProgress->setMaximum(lGenerator.GetNestingTime()); + m_taskbarProgress->setMaximum(lGenerator.GetNestingTime()*60); progressTimer = new QTimer(this); - connect(progressTimer, &QTimer::timeout, this, [this, timer, &lGenerator]() + connect(progressTimer, &QTimer::timeout, this, [this, timer]() { - m_taskbarProgress->setValue(static_cast(timer.elapsed()/60000)); + m_taskbarProgress->setValue(static_cast(timer.elapsed()/1000)); }); progressTimer->start(1000); #endif