提交 616a1119 编写于 作者: 之一Yo's avatar 之一Yo

修复点击侧边导航项叶节点的箭头处无法触发槽函数的问题 (#325)

上级 c3c0c868
......@@ -211,7 +211,7 @@ class NavigationTreeItem(NavigationPushButton):
def mouseReleaseEvent(self, e):
super().mouseReleaseEvent(e)
clickArrow = QRectF(self.width()-30, 8, 20, 20).contains(e.pos())
self.itemClicked.emit(True, clickArrow)
self.itemClicked.emit(True, clickArrow and not self.parent().isLeaf())
self.update()
def _canDrawIndicator(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册