Fixing error: 'this' was not captured for this lambda function.
--HG-- branch : develop
This commit is contained in:
parent
2f420854c2
commit
878320fe90
|
@ -224,7 +224,7 @@ bool MainWindowsNoGUI::GenerateLayout(VLayoutGenerator& lGenerator)
|
||||||
m_taskbarProgress->setValue(0);
|
m_taskbarProgress->setValue(0);
|
||||||
m_taskbarProgress->setMaximum(lGenerator.GetNestingTime());
|
m_taskbarProgress->setMaximum(lGenerator.GetNestingTime());
|
||||||
progressTimer = new QTimer(this);
|
progressTimer = new QTimer(this);
|
||||||
connect(progressTimer, &QTimer::timeout, this, [timer, &lGenerator]()
|
connect(progressTimer, &QTimer::timeout, this, [this, timer, &lGenerator]()
|
||||||
{
|
{
|
||||||
m_taskbarProgress->setValue(static_cast<int>(timer.elapsed()/60000));
|
m_taskbarProgress->setValue(static_cast<int>(timer.elapsed()/60000));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user