| 677 | } |
| 678 | |
| 679 | void LightscreenWindow::showUploaderMessage(const QString &fileName, const QString &url) |
| 680 | { |
| 681 | if (mTrayIcon && settings()->value("options/message").toBool() && !url.isEmpty()) { |
| 682 | QString screenshot = QFileInfo(fileName).fileName(); |
| 683 | |
| 684 | if (screenshot.startsWith(".lstemp.")) { |
| 685 | screenshot = tr("Screenshot"); |
| 686 | } |
| 687 | |
| 688 | mLastMessage = 2; |
| 689 | mTrayIcon->showMessage(tr("%1 uploaded").arg(screenshot), tr("Click here to go to %1").arg(url)); |
| 690 | } |
| 691 | |
| 692 | updateStatus(); |
| 693 | } |
| 694 | |
| 695 | void LightscreenWindow::toggleVisibility() |
| 696 | { |
nothing calls this directly
no outgoing calls
no test coverage detected