MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / slotScreenShot

Method slotScreenShot

Src/OperateDesktop.cpp:592–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592void 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
607void COperateDesktop::slotShortcutCtlAltDel()
608{

Callers

nothing calls this directly

Calls 3

GetImageFileMethod · 0.80
GetEndActionMethod · 0.80
GrabImageMethod · 0.45

Tested by

no test coverage detected