개정판 b35e1b15
issue #000: fix line place
Change-Id: I504a7846035e62829b023e6adc7739f8e0a4c209
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2055 | 2055 |
|
2056 | 2056 |
detector = LineDetector(None) |
2057 | 2057 |
|
2058 |
if not self.actionLine.tag.line_type:
|
|
2058 |
if not home_pane.ui.toolButtonLine.tag.line_type:
|
|
2059 | 2059 |
line_type = self.lineComboBox.currentText() |
2060 | 2060 |
else: |
2061 | 2061 |
pane = self.ribbon.get_pane('Home') |
... | ... | |
2066 | 2066 |
QEngineeringLineItem.check_piping(selected_line_type)): |
2067 | 2067 |
line_type = selected_line_type |
2068 | 2068 |
else: |
2069 |
line_type = self.actionLine.tag.line_type
|
|
2069 |
line_type = home_pane.ui.toolButtonLine.tag.line_type
|
|
2070 | 2070 |
for index in range(count - 1): |
2071 | 2071 |
start = home_pane.ui.toolButtonLine.tag._polyline._vertices[index] |
2072 | 2072 |
end = home_pane.ui.toolButtonLine.tag._polyline._vertices[index + 1] |
... | ... | |
2123 | 2123 |
elif type(cmd) is PlacePolygonCommand.PlacePolygonCommand: |
2124 | 2124 |
home_pane.ui.toolButtonVendor.setChecked(False) |
2125 | 2125 |
else: |
2126 |
if hasattr(self.actionLine, 'tag') and home_pane.ui.toolButtonLine.tag._polyline: |
|
2127 |
self.graphicsView.scene().removeItem(home_pane.ui.toolButtonLine.tag._polyline) |
|
2128 |
self.graphicsView.scene().update() |
|
2129 |
self.actionLine.tag.reset() |
|
2130 | 2126 |
if hasattr(home_pane.ui.toolButtonVendor, 'tag') and home_pane.ui.toolButtonVendor.tag._polyline: |
2131 | 2127 |
self.graphicsView.scene().removeItem(home_pane.ui.toolButtonVendor.tag._polyline) |
2132 | 2128 |
self.graphicsView.scene().update() |
내보내기 Unified diff