개정판 bc085959
fixed issue #482:
- Reducer의 Size를 출력해야 함
- Angle Valve의 경우 심볼의 원점까지 선을 연장해서 그려야 함
DTI_PID/DTI_PID/ResultPropertyTableWidget.py | ||
---|---|---|
177 | 177 |
def initTitleCell(self, item): |
178 | 178 |
try: |
179 | 179 |
if issubclass(type(item), SymbolSvgItem) or type(item) is SymbolSvgItem: |
180 |
self.setRowCount(3)
|
|
180 |
self.setRowCount(4)
|
|
181 | 181 |
|
182 |
widgetItem = QTableWidgetItem("심볼명") |
|
183 |
self.setItem(0, 0, widgetItem) |
|
184 |
widgetItem = QTableWidgetItem("타입") |
|
185 |
self.setItem(1, 0, widgetItem) |
|
186 |
widgetItem = QTableWidgetItem("각도") |
|
187 |
self.setItem(2, 0, widgetItem) |
|
182 |
self.setItem(0, 0, QTableWidgetItem("심볼명")) |
|
183 |
self.setItem(1, 0, QTableWidgetItem("타입")) |
|
184 |
self.setItem(2, 0, QTableWidgetItem("각도")) |
|
185 |
self.setItem(3, 0, QTableWidgetItem("원점")) |
|
188 | 186 |
elif type(item) is QEngineeringNoteItem: |
189 | 187 |
self.setRowCount(1) |
190 | 188 |
|
... | ... | |
227 | 225 |
from QEngineeringInstrumentItem import QEngineeringInstrumentItem |
228 | 226 |
|
229 | 227 |
if self.symData is not None: |
230 |
self.setRowCount(3 + len(self.symData.getAttributes()) + len(self.symData.conns))
|
|
228 |
self.setRowCount(self.rowCount() + len(self.symData.getAttributes()) + len(self.symData.conns))
|
|
231 | 229 |
|
232 | 230 |
self.setItem(0, 1, QTableWidgetItem(self.symData.name)) |
233 | 231 |
self.setItem(1, 1, QTableWidgetItem(self.symData.type)) |
234 | 232 |
self.setItem(2, 1, QTableWidgetItem(str(round(math.degrees(self.symData.angle))))) |
233 |
self.setItem(3, 1, QTableWidgetItem(str(self.symData.origin))) |
|
235 | 234 |
|
236 |
row = 3
|
|
235 |
row = 4
|
|
237 | 236 |
# display attributes of symbol |
238 | 237 |
attrs = self.symData.getAttributes() |
239 | 238 |
if attrs is not None: |
내보내기 Unified diff