개정판 ed7bdc6a
fix run move
Change-Id: I22778348debb1357319aff6afabd7ee46b148d4f
DTI_PID/DTI_PID/Commands/SelectAttributeBatchCommand.py | ||
---|---|---|
213 | 213 |
line_run.owner = item |
214 | 214 |
item.runs.append(line_run) |
215 | 215 |
|
216 |
App.mainWnd().itemTreeWidget.explode_line_no_from_context(trim) |
|
217 |
for _item in _items: |
|
218 |
_item.owner = item |
|
216 |
if len(trim.runs) == 1: |
|
217 |
App.mainWnd().itemTreeWidget.explode_line_no_from_context(trim) |
|
218 |
for _item in _items: |
|
219 |
_item.owner = item |
|
220 |
else: |
|
221 |
newTrim = QEngineeringTrimLineNoTextItem() |
|
222 |
_runs = [run for run in trim.runs if run is not matches[0]] |
|
223 |
for _run in _runs: |
|
224 |
_items = [] |
|
225 |
for _item in _run.items: |
|
226 |
_items.append(_item) |
|
227 |
run = QEngineeringRunItem() |
|
228 |
run.items = _items |
|
229 |
run.owner = newTrim |
|
230 |
newTrim.runs.append(run) |
|
231 |
|
|
232 |
App.mainWnd().itemTreeWidget.explode_line_no_from_context(trim) |
|
233 |
for _item in line_run.items: |
|
234 |
_item.owner = item |
|
235 |
|
|
236 |
for _run in newTrim.runs: |
|
237 |
for _item in _run.items: |
|
238 |
_item.owner = newTrim |
|
239 |
|
|
240 |
tracerLineNos = AppDocData.instance().tracerLineNos |
|
241 |
tracerLineNos.append(newTrim) |
|
219 | 242 |
elif 'mouseReleaseEvent' == param[0]: |
220 | 243 |
self.isTreated = True |
221 | 244 |
elif ('keyPressEvent' == param[0] and Qt.Key_Return == event.key()): |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
319 | 319 |
version = QCoreApplication.applicationVersion() |
320 | 320 |
#kitech |
321 | 321 |
#title = f"{App.NAME}({version}) - {project.name}: " \ |
322 |
title = f"{App.NAME}({version}) - {'OPB'}: " \
|
|
322 |
title = f"{App.NAME}({version}) - {'MEG'}: " \
|
|
323 | 323 |
f"{app_doc_data.activeDrawing.name if app_doc_data.activeDrawing and not app_doc_data.readOnly else (app_doc_data.activeDrawing.name + '(read-only)' if app_doc_data.activeDrawing else '')}" |
324 | 324 |
#title = f"{App.NAME} : ID2 " \ |
325 | 325 |
# f"{app_doc_data.activeDrawing.name if app_doc_data.activeDrawing else ''}" |
내보내기 Unified diff