| 362 | } |
| 363 | |
| 364 | void 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 | |
| 385 | void StoreProgress::on_change_file() |
| 386 | { |
nothing calls this directly
no test coverage detected