MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / GetFormRegion

Method GetFormRegion

DSView/pv/mainframe.cpp:809–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809QRect MainFrame::GetFormRegion()
810{
811 QRect rc;
812
813#ifdef _WIN32
814
815 if (_parentNativeWidget != NULL){
816 int k = _parentNativeWidget->GetDevicePixelRatio();
817 RECT r;
818 GetWindowRect(_parentNativeWidget->Handle(), &r);
819 int x = r.left;
820 int y = r.top;
821 int w = r.right-r.left;
822 int h = r.bottom-r.top;
823 rc = QRect(x/k, y/k, w/k, h/k);
824 }
825 else{
826 rc = geometry();
827 }
828#else
829 rc = geometry();
830#endif
831
832 return rc;
833}
834
835bool MainFrame::IsMaxsized()
836{

Callers

nothing calls this directly

Calls 3

GetDevicePixelRatioMethod · 0.80
HandleMethod · 0.80
QRectClass · 0.50

Tested by

no test coverage detected