MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / on_progress_updated

Method on_progress_updated

DSView/pv/dialogs/storeprogress.cpp:364–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void StoreProgress::on_progress_updated()
365{
366 uint64_t writed = 0;
367 uint64_t total = 0;
368
369 _store_session->get_progress(&writed, &total);
370
371 if (writed < total){
372 int percent = writed * 1.0 / total * 100.0;
373 _progress.setValue(percent);
374 }
375 else{
376 _progress.setValue(100);
377 }
378
379 const QString err = _store_session->error();
380 if (!err.isEmpty()) {
381 show_error();
382 }
383}
384
385void StoreProgress::on_change_file()
386{

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.80
get_progressMethod · 0.45

Tested by

no test coverage detected