| 794 | } |
| 795 | |
| 796 | void LightscreenWindow::uploadProgress(int progress) |
| 797 | { |
| 798 | if (mHasTaskbarButton) { |
| 799 | mTaskbarButton->progress()->setVisible(true); |
| 800 | mTaskbarButton->progress()->setValue(progress); |
| 801 | } |
| 802 | |
| 803 | if (isVisible() && progress > 0) { |
| 804 | int uploadCount = Uploader::instance()->uploading(); |
| 805 | |
| 806 | if (uploadCount > 1) { |
| 807 | setWindowTitle(tr("%1% of %2 uploads - Lightscreen").arg(progress).arg(uploadCount)); |
| 808 | } else { |
| 809 | setWindowTitle(tr("%1% - Lightscreen").arg(progress)); |
| 810 | } |
| 811 | } |
| 812 | } |
| 813 | |
| 814 | void LightscreenWindow::windowHotkey() |
| 815 | { |