개정판 015a1673
issue #637: fix item table and spec break posotion
Change-Id: Ifd07b1f767f7bf2275c4534601e93aba38b1f243
DTI_PID/DTI_PID/ItemPropertyTableWidget.py | ||
---|---|---|
518 | 518 |
UpDownItem = QTableWidgetItem('{}'.format('None' if value is None else value)) |
519 | 519 |
self.setItem(row, 3, UpDownItem) |
520 | 520 |
elif key.AttributeType == 'Spec': |
521 |
self.setItem(row, 3, QTableWidgetItem(key.Attribute))
|
|
521 |
self.setItem(row, 3, QTableWidgetItem(str(value)[1:-1]))
|
|
522 | 522 |
else: |
523 | 523 |
self.setItem(row, 3, value_item) |
524 | 524 |
|
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
649 | 649 |
for connector in spec[0].connectors: |
650 | 650 |
if connector.connectedItem is spec[1]: |
651 | 651 |
spec_break = SymbolSvgItem.createItem(symbol.getType(), svgFilePath) |
652 |
pt = [connector.center()[0] - float(symbol.getOriginalPoint().split(',')[0]), connector.center()[1] - float(symbol.getOriginalPoint().split(',')[1])]
|
|
652 |
pt = [20 + connector.center()[0] - float(symbol.getOriginalPoint().split(',')[0]), 20 + connector.center()[1] - float(symbol.getOriginalPoint().split(',')[1])]
|
|
653 | 653 |
origin = [0, 0] |
654 | 654 |
if 2 == len(symbol.getOriginalPoint().split(',')): |
655 | 655 |
tokens = symbol.getOriginalPoint().split(',') |
내보내기 Unified diff