프로젝트

일반

사용자정보

개정판 e4003ced

IDe4003cedc8c21eebe9f391b8d5815b0307c3b913
상위 e3bab6e7
하위 c6498fec

함의성이(가) 5년 이상 전에 추가함

issue #610: default drawing line type will follow config

Change-Id: Ie2a835c821d42ff8836c08640bf717c9ee65ded3

차이점 보기:

DTI_PID/DTI_PID/MainWindow.py
126 126
        self.lineComboBox = QComboBox(self.toolBar)
127 127
        for condition in LineTypeConditions.items():
128 128
            self.lineComboBox.addItem(condition.name)
129
        self.lineComboBox.currentIndexChanged.connect(self.onLineTypeChanged)
129

  
130
        configs = docData.getConfigs('Line', 'Default Type')
131
        value = configs[0].value if 1 == len(configs) else ''
132
        if value:
133
            at = self.lineComboBox.findText(value)
134
            self.lineComboBox.setCurrentIndex(at)
135
        else:
136
            at = self.lineComboBox.findText('Secondary')
137
            self.lineComboBox.setCurrentIndex(at)
138
        #self.lineComboBox.currentIndexChanged.connect(self.onLineTypeChanged)
130 139

  
131 140
        self.toolBar.insertWidget(self.actionOCR, self.lineComboBox)
132 141
        self.toolBar.insertSeparator(self.actionOCR)
......
1853 1862
                    if item in run.items:
1854 1863
                        index = run.items.index(item)
1855 1864
                        run.items.pop(index)
1865
                        if not run.items:
1866
                            run.explode()
1867
                        break
1856 1868

  
1857 1869
            matches = [_item for _item in self.graphicsView.scene.items() if hasattr(_item, 'owner')]
1858 1870
            for match in matches:

내보내기 Unified diff

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