def mouseDoubleClickEvent(self, ev: QtGui.QMouseEvent):
# super(VQMemoryCanvas, self).mouseDoubleClickEvent(ev)
t = self.cursorForPosition(ev.pos())
cf = t.charFormat()
tag = cf.property(VivTextProperties.vivTag)
val = cf.property(VivTextProperties.vivValue)
if tag is ContentTagsEnum.VA:
self.gotoVa(val)
else:
if self._hasHighligtedTags() is True:
self._highlightClear()
self._highlightTag(tag, val)
评论列表
文章目录