| 807 | } |
| 808 | |
| 809 | QRect 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 | |
| 835 | bool MainFrame::IsMaxsized() |
| 836 | { |
nothing calls this directly
no test coverage detected