개정판 c245f76a
fix line run move
Change-Id: Ieb5b015c7e10ea55fa920f9ff67c9a347ca83875
DTI_PID/DTI_PID/Commands/SelectAttributeBatchCommand.py | ||
---|---|---|
202 | 202 |
matches = [run for run in selected_items[0].owner.runs if selected_items[0] in run.items] |
203 | 203 |
if matches: |
204 | 204 |
trim = selected_items[0].owner |
205 |
_items = [] |
|
205 | 206 |
for _item in matches[0].items: |
207 |
_items.append(_item) |
|
208 |
|
|
209 |
line_run = QEngineeringRunItem() |
|
210 |
line_run.items = _items |
|
211 |
|
|
212 |
if line_run.items is not None and len(line_run.items) > 0: |
|
213 |
line_run.owner = item |
|
214 |
item.runs.append(line_run) |
|
215 |
|
|
216 |
App.mainWnd().itemTreeWidget.explode_line_no_from_context(trim) |
|
217 |
for _item in _items: |
|
206 | 218 |
_item.owner = item |
207 |
_item.update() |
|
208 |
matches[0].owner = item |
|
209 |
item.runs.append(matches[0]) |
|
210 |
trim.runs.remove(matches[0]) |
|
211 |
trim.explode() |
|
212 | 219 |
elif 'mouseReleaseEvent' == param[0]: |
213 | 220 |
self.isTreated = True |
214 | 221 |
elif ('keyPressEvent' == param[0] and Qt.Key_Return == event.key()): |
내보내기 Unified diff