개정판 eb5697b1
issue #478: change font
Change-Id: If2c16019193cefea5044d2d5b7ff954ded8ffd35
DTI_PID/DTI_PID/TextDataListDialog.py | ||
---|---|---|
27 | 27 |
|
28 | 28 |
# for List |
29 | 29 |
self.ui.tableWidget.setSelectionMode(QAbstractItemView.SingleSelection) |
30 |
self.ui.tableWidget.setColumnCount(3)
|
|
30 |
self.ui.tableWidget.setColumnCount(2)
|
|
31 | 31 |
|
32 | 32 |
## column header 명 설정 |
33 | 33 |
self.ui.tableWidget.setHorizontalHeaderLabels([self.tr('Text Image'), self.tr('Recognized Text')]) |
... | ... | |
60 | 60 |
transform = QTransform() |
61 | 61 |
transform.rotate(-90) |
62 | 62 |
textImage = textImage.transformed(transform) |
63 |
textImage = textImage.scaled(450, 60, Qt.KeepAspectRatio, Qt.SmoothTransformation)
|
|
63 |
textImage = textImage.scaled(500, 60, Qt.KeepAspectRatio, Qt.SmoothTransformation)
|
|
64 | 64 |
imageWidget.setData(Qt.DecorationRole, textImage) |
65 | 65 |
self.ui.tableWidget.setItem(row, 0, imageWidget) |
66 | 66 |
|
67 | 67 |
textWidget = QTableWidgetItem(textItem.text()) |
68 |
textWidget.setFont(QFont('Consolas', 15, QFont.Bold)) |
|
68 | 69 |
textWidget.tag = textItem |
69 | 70 |
self.ui.tableWidget.setItem(row, 1, textWidget) |
70 | 71 |
row = row + 1 |
내보내기 Unified diff