提交 da396b83 编写于 作者: K Kentaro Wada

Press outside of the list to clear selection

上级 45d1d047
......@@ -6,6 +6,11 @@ from .escapable_qlist_widget import EscapableQListWidget
class UniqueLabelQListWidget(EscapableQListWidget):
def mousePressEvent(self, event):
super().mousePressEvent(event)
if not self.indexAt(event.pos()).isValid():
self.clearSelection()
def findItemsByLabel(self, label):
items = []
for row in range(self.count()):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册