Mercurial > hg > svgui
comparison view/View.cpp @ 1560:27f3e64489e1 spectrogram-export
Give timer a parent so as not to leak it
author | Chris Cannam |
---|---|
date | Thu, 09 Jan 2020 14:29:21 +0000 |
parents | bd6af89982d7 |
children | f12c25651f96 |
comparison
equal
deleted
inserted
replaced
1559:e6e7a8dc3b38 | 1560:27f3e64489e1 |
---|---|
860 | 860 |
861 ProgressBarRec pbr; | 861 ProgressBarRec pbr; |
862 pbr.cancel = cancel; | 862 pbr.cancel = cancel; |
863 pbr.bar = pb; | 863 pbr.bar = pb; |
864 pbr.lastStallCheckValue = 0; | 864 pbr.lastStallCheckValue = 0; |
865 pbr.stallCheckTimer = new QTimer(); | 865 pbr.stallCheckTimer = new QTimer(this); |
866 connect(pbr.stallCheckTimer, SIGNAL(timeout()), this, | 866 connect(pbr.stallCheckTimer, SIGNAL(timeout()), this, |
867 SLOT(progressCheckStalledTimerElapsed())); | 867 SLOT(progressCheckStalledTimerElapsed())); |
868 | 868 |
869 m_progressBars[layer] = pbr; | 869 m_progressBars[layer] = pbr; |
870 | 870 |