MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / ProcessCopy

Method ProcessCopy

src/render_panel/ui/st_security_visitor.cpp:269–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267 }
268
269 void StSecurityVisitor::ProcessCopy(const std::shared_ptr<VisitRecord>& record) {
270 auto msg = record->AsString();
271 QClipboard* clipboard = QApplication::clipboard();
272 clipboard->setText(QString::fromStdString(msg));
273 context_->NotifyAppMessage(tcTr("id_copy_success"), tcTr("id_copy_success_clipboard"));
274 }
275
276 void StSecurityVisitor::ProcessCopyAsJson(const std::shared_ptr<VisitRecord>& record) {
277 auto msg = record->AsJson();

Callers

nothing calls this directly

Calls 2

AsStringMethod · 0.45
NotifyAppMessageMethod · 0.45

Tested by

no test coverage detected