Mercurial > hg > svgui
comparison widgets/ProgressDialog.cpp @ 379:036b75ddcd3f
...
author | Chris Cannam |
---|---|
date | Fri, 14 Mar 2008 17:24:42 +0000 |
parents | 22b72f0f6a4e |
children | 33b7f5e54d60 |
comparison
equal
deleted
inserted
replaced
378:22b72f0f6a4e | 379:036b75ddcd3f |
---|---|
57 | 57 |
58 void | 58 void |
59 ProgressDialog::showTimerElapsed() | 59 ProgressDialog::showTimerElapsed() |
60 { | 60 { |
61 m_timerElapsed = true; | 61 m_timerElapsed = true; |
62 delete m_showTimer; | |
63 m_showTimer = 0; | |
64 if (m_dialog->value() > 0) { | 62 if (m_dialog->value() > 0) { |
65 m_dialog->show(); | 63 m_dialog->show(); |
66 } | 64 } |
67 qApp->processEvents(); | 65 qApp->processEvents(); |
68 } | 66 } |
73 if (percentage > m_dialog->value()) { | 71 if (percentage > m_dialog->value()) { |
74 | 72 |
75 m_dialog->setValue(percentage); | 73 m_dialog->setValue(percentage); |
76 | 74 |
77 if (percentage >= 100) { | 75 if (percentage >= 100) { |
78 delete m_showTimer; | |
79 m_showTimer = 0; | |
80 m_dialog->hide(); | 76 m_dialog->hide(); |
81 } else if (m_timerElapsed && !m_dialog->isVisible()) { | 77 } else if (m_timerElapsed && !m_dialog->isVisible()) { |
82 m_dialog->show(); | 78 m_dialog->show(); |
83 m_dialog->raise(); | 79 m_dialog->raise(); |
84 } | 80 } |