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

Method LoadAdaptWindows

Src/OperateDesktop.cpp:487–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487int COperateDesktop::LoadAdaptWindows()
488{
489 if(m_pFrmViewer && GetParameter())
490 {
491 m_pFrmViewer->slotSetZoomFactor(GetParameter()->GetZoomFactor());
492 if(m_psbZoomFactor)
493 m_psbZoomFactor->setValue(m_pFrmViewer->GetZoomFactor() * 100);
494 CFrmViewer::ADAPT_WINDOWS aw = GetParameter()->GetAdaptWindows();
495 if(CFrmViewer::ADAPT_WINDOWS::ZoomToWindow == aw) {
496 if(m_pZoomToWindow) {
497 m_pZoomToWindow->trigger();
498 }
499 } else if(CFrmViewer::ADAPT_WINDOWS::KeepAspectRationToWindow == aw) {
500 if(m_pZoomAspectRatio) {
501 m_pZoomAspectRatio->trigger();
502 }
503 } else if(CFrmViewer::ADAPT_WINDOWS::Original == aw) {
504 if(m_pZoomOriginal) {
505 m_pZoomOriginal->trigger();
506 }
507 } else if(CFrmViewer::ADAPT_WINDOWS::Zoom == aw) {
508 if(m_pZoomIn) {
509 m_pZoomIn->trigger();
510 }
511 }
512 }
513 return 0;
514}
515
516int COperateDesktop::Load(QSettings &set)
517{

Callers

nothing calls this directly

Calls 3

slotSetZoomFactorMethod · 0.80
GetZoomFactorMethod · 0.45
GetAdaptWindowsMethod · 0.45

Tested by

no test coverage detected