progress.cc (300B)
1 #include "progress.hh" 2 3 4 void 5 progress_t::on_tab_change() 6 { 7 8 } 9 10 void 11 progress_t::on_load() 12 { 13 QProgressBar::setValue(0); 14 QProgressBar::setVisible(m_enabled); 15 } 16 17 void 18 progress_t::on_progress(int value) 19 { 20 QProgressBar::setValue(value); 21 22 if (value == 100) 23 QProgressBar::hide(); 24 }