MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / GetParentPos

Method GetParentPos

DSView/pv/mainframe.cpp:208–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208QPoint 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
222bool MainFrame::ParentIsMaxsized()
223{

Callers 1

mousePressEventMethod · 0.80

Calls 1

HandleMethod · 0.80

Tested by

no test coverage detected