프로젝트

일반

사용자정보

개정판 8a22a0ed

ID8a22a0edf496845c3c4c21c655bd30460c7ef8c0
상위 ae485d03
하위 1c52cea0, 9b64a73b

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

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

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