| 786 | } |
| 787 | |
| 788 | void MainFrame::SetFormRegion(int x, int y, int w, int h) |
| 789 | { |
| 790 | #ifdef _WIN32 |
| 791 | |
| 792 | if (_parentNativeWidget != NULL){ |
| 793 | int k = _parentNativeWidget->GetDevicePixelRatio(); |
| 794 | |
| 795 | x *= k; |
| 796 | y *= k; |
| 797 | w *= k; |
| 798 | h *= k; |
| 799 | |
| 800 | _parentNativeWidget->setGeometry(x, y, w, h); |
| 801 | |
| 802 | return; |
| 803 | } |
| 804 | #endif |
| 805 | |
| 806 | setGeometry(x, y, w, h); |
| 807 | } |
| 808 | |
| 809 | QRect MainFrame::GetFormRegion() |
| 810 | { |
nothing calls this directly
no test coverage detected