개정판 e618acaf
issue #1052: 스트림 라인 태그 배치 기능 업데이트
Change-Id: Ie76256bc4a5bf3653297058ee3d3e0b469134a39
HYTOS/HYTOS/Shapes/SymbolSvgItem.py | ||
---|---|---|
598 | 598 |
self.desc_labels[0].setPos(QPointF((rect.width() - label_rect.width()) * 0.5, rect.height())) |
599 | 599 |
elif self.type == 'Valve': |
600 | 600 |
if self.tag_no and self.name in ('CV_H', 'CV_V'): |
601 |
conns = [conn for conn in self.connectors |
|
602 |
if conn.data and conn.data.pressure_drop is not None and conn.data.elevation is not None] |
|
601 |
conns = [conn for conn in self.connectors if conn.data and conn.data.elevation is not None] |
|
603 | 602 |
if conns: |
604 | 603 |
self.desc_labels[0].setHtml( |
605 | 604 |
f"{self.tag_no}<br>{convert_to_fixed_point(conns[0].data.pressure_drop) if conns[0].data.pressure_drop is not None else 0} {units['Pressure']}<br>" |
내보내기 Unified diff