개정판 ae90a35e
add text area search
Change-Id: I2e4ed15552de55fa35980dcc2332a36c5846c991
DTI_PID/DTI_PID/TextItemEditDialog.py | ||
---|---|---|
348 | 348 |
if line_no2 not in duplication[line_no1.text()]: |
349 | 349 |
duplication[line_no1.text()].append(line_no2) |
350 | 350 |
text_items = list(duplication.values()) |
351 |
elif text.upper() == 'AREA': |
|
352 |
text_items = [item for item in self.mainWindow.graphicsView.scene().items() if issubclass(type(item), QEngineeringTextItem) and item.area and item.area != 'None'] |
|
351 | 353 |
else: |
352 | 354 |
text_items = [item for item in self.mainWindow.graphicsView.scene().items() |
353 | 355 |
if issubclass(type(item), QEngineeringTextItem) and (item.text().upper().count(text.upper()) if not self.ui.checkBoxMatch.isChecked() else item.text().upper() == text.upper())] |
내보내기 Unified diff