MCPcopy Create free account
hub / github.com/OneMoreGres/ScreenTranslator / handleIconClick

Method handleIconClick

src/trayicon.cpp:182–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void 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
200QMenu *TrayIcon::contextMenu()
201{

Callers

nothing calls this directly

Calls 4

isEnabledMethod · 0.80
copyLastToClipboardMethod · 0.80
showLastMethod · 0.45
repeatCaptureMethod · 0.45

Tested by

no test coverage detected