| 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 | } |
no test coverage detected