개정판 e4003ced
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