개정판 8a22a0ed
issue #506: fix text data list selcection
Change-Id: I95a2ed3e724e3054aad9b97ce26f86eb584b2715
DTI_PID/DTI_PID/TextDataListDialog.py | ||
---|---|---|
80 | 80 |
row = row + 1 |
81 | 81 |
|
82 | 82 |
def listCellDoubleClicked(self, row, col): |
83 |
self.pushButtonEditClicked() |
|
83 |
self.pushButtonEditClicked(row, col)
|
|
84 | 84 |
|
85 |
def pushButtonEditClicked(self): |
|
85 |
def pushButtonEditClicked(self, row=None, col=None):
|
|
86 | 86 |
try: |
87 |
row = self.ui.tableWidget.selectedIndexes()[0].row() |
|
87 |
if not row: |
|
88 |
row = self.ui.tableWidget.selectedIndexes()[0].row() |
|
88 | 89 |
col = 1 |
89 | 90 |
textItem = self.ui.tableWidget.item(row, col).tag |
90 | 91 |
except Exception as ex: |
... | ... | |
143 | 144 |
def listCellClicked(self, row, col): |
144 | 145 |
from HighlightCommand import HighlightCommand |
145 | 146 |
|
147 |
if col is 1: |
|
148 |
self.ui.tableWidget.clearSelection() |
|
149 |
|
|
146 | 150 |
HighlightCommand(self.graphicsView).execute(self.ui.tableWidget.item(row, 1).tag) |
147 | 151 |
|
148 | 152 |
def keyPressEvent(self, event): |
내보내기 Unified diff