프로젝트

일반

사용자정보

개정판 ed7bdc6a

IDed7bdc6a45e42bfbfa4315fcfb673ee3659b54b2
상위 7cc8b3ae
하위 ec614c1e, 1b86337c

함의성이(가) 약 일년 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)