| 206 | } |
| 207 | |
| 208 | QPoint MainFrame::GetParentPos() |
| 209 | { |
| 210 | #ifdef _WIN32 |
| 211 | if (_parentNativeWidget != NULL){ |
| 212 | RECT rc; |
| 213 | int k = window()->devicePixelRatio(); |
| 214 | GetWindowRect(_parentNativeWidget->Handle(), &rc); |
| 215 | return QPoint(rc.left / k, rc.top / k); |
| 216 | } |
| 217 | #endif |
| 218 | |
| 219 | return pos(); |
| 220 | } |
| 221 | |
| 222 | bool MainFrame::ParentIsMaxsized() |
| 223 | { |