| 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(); |
nothing calls this directly
no test coverage detected