| 180 | } |
| 181 | |
| 182 | void TrayIcon::handleIconClick(QSystemTrayIcon::ActivationReason reason) |
| 183 | { |
| 184 | if (reason == QSystemTrayIcon::Trigger && showLastAction_->isEnabled()) { |
| 185 | manager_.showLast(); |
| 186 | return; |
| 187 | } |
| 188 | |
| 189 | if (reason == QSystemTrayIcon::MiddleClick && clipboardAction_->isEnabled()) { |
| 190 | manager_.copyLastToClipboard(); |
| 191 | return; |
| 192 | } |
| 193 | |
| 194 | if (reason == QSystemTrayIcon::DoubleClick && |
| 195 | repeatCaptureAction_->isEnabled()) { |
| 196 | manager_.repeatCapture(); |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | QMenu *TrayIcon::contextMenu() |
| 201 | { |
nothing calls this directly
no test coverage detected