| 590 | } |
| 591 | |
| 592 | void COperateDesktop::slotScreenShot() |
| 593 | { |
| 594 | if(!GetParameter() || !m_pFrmViewer) |
| 595 | return; |
| 596 | auto &record = GetParameter()->m_Record; |
| 597 | QString szFile = record.GetImageFile(true); |
| 598 | bool bRet = m_pFrmViewer->GrabImage().save(szFile); |
| 599 | if(bRet) |
| 600 | qDebug(log) << "Success: save screenshot to" << szFile; |
| 601 | else |
| 602 | qCritical(log) << "Fail: save screenshot to" << szFile; |
| 603 | if(record.GetEndAction() != CParameterRecord::ENDACTION::No) |
| 604 | QDesktopServices::openUrl(QUrl::fromLocalFile(szFile)); |
| 605 | } |
| 606 | |
| 607 | void COperateDesktop::slotShortcutCtlAltDel() |
| 608 | { |
nothing calls this directly
no test coverage detected