188 """ |
188 """ |
189 if index.isValid(): |
189 if index.isValid(): |
190 itm = self.model().item(index) |
190 itm = self.model().item(index) |
191 if itm: |
191 if itm: |
192 with contextlib.suppress(AttributeError): |
192 with contextlib.suppress(AttributeError): |
193 lineno = itm.lineno() |
193 self.__model.editor().gotoLine(itm.lineno(), itm.colOffset() + 1) |
194 self.__model.editor().gotoLine(lineno) |
194 self.__model.editor().setFocus() |
195 |
195 |
196 def mouseDoubleClickEvent(self, mouseEvent): |
196 def mouseDoubleClickEvent(self, mouseEvent): |
197 """ |
197 """ |
198 Protected method of QAbstractItemView. |
198 Protected method of QAbstractItemView. |
199 |
199 |