개정판 ee44bddd
issue #000: fix line drawing
Change-Id: I53054242bdea3d3533f4a17bda625befe53813c9
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
1432 | 1432 |
|
1433 | 1433 |
self.symbolTreeWidget.expandAll() |
1434 | 1434 |
|
1435 |
''' |
|
1436 |
@brief change selected lines' type by selected line type |
|
1437 |
@author humkyung |
|
1438 |
@date 2018.06.27 |
|
1439 |
''' |
|
1440 |
|
|
1441 |
def onLineTypeChanged(self, param): |
|
1442 |
lineType = self.lineComboBox.itemText(param) |
|
1443 |
selected = [item for item in self.graphicsView.scene().selectedItems() if type(item) is QEngineeringLineItem] |
|
1444 |
if selected: |
|
1445 |
for item in selected: |
|
1446 |
item.lineType = lineType |
|
1447 |
|
|
1448 | 1435 |
def display_colors(self, value): |
1449 | 1436 |
""" display colors """ |
1450 | 1437 |
from DisplayColors import DisplayColors |
... | ... | |
2091 | 2078 |
detector = LineDetector(None) |
2092 | 2079 |
|
2093 | 2080 |
if not home_pane.ui.toolButtonLine.tag.line_type: |
2094 |
line_type = self.lineComboBox.currentText()
|
|
2081 |
line_type = home_pane.ui.comboBoxLineType.currentText()
|
|
2095 | 2082 |
else: |
2096 | 2083 |
pane = self.ribbon.get_pane('Home') |
2097 | 2084 |
selected_line_type = pane.ui.comboBoxLineType.currentText() |
내보내기 Unified diff