MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / ReCalculatePosition

Method ReCalculatePosition

src/client/ui/float_controller.cpp:102–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 void FloatController::ReCalculatePosition() {
103 QRect parent_rect = parentWidget()->geometry();
104 float xpos = parent_rect.width() * std::atof(context_->GetValueByKey(kPosX).c_str());
105 float ypos = parent_rect.height() * std::atof(context_->GetValueByKey(kPosY).c_str());
106 move(xpos, ypos);
107 }
108}

Callers 1

resizeEventMethod · 0.80

Calls 1

GetValueByKeyMethod · 0.80

Tested by

no test coverage detected