| 215 | |
| 216 | |
| 217 | QPointF |
| 218 | NodeGeometry:: |
| 219 | widgetPosition() const |
| 220 | { |
| 221 | if (auto w = _dataModel->embeddedWidget()) |
| 222 | { |
| 223 | if (_dataModel->validationState() != NodeValidationState::Valid) |
| 224 | { |
| 225 | return QPointF(_spacing + portWidth(PortType::In), |
| 226 | ( _height - validationHeight() - _spacing - w->height()) / 2.0); |
| 227 | } |
| 228 | |
| 229 | return QPointF(_spacing + portWidth(PortType::In), |
| 230 | ( _height - w->height()) / 2.0); |
| 231 | } |
| 232 | |
| 233 | return QPointF(); |
| 234 | } |
| 235 | |
| 236 | unsigned int |
| 237 | NodeGeometry:: |
nothing calls this directly
no test coverage detected