提交 1febf239 编写于 作者: K Kentaro Wada

Add completion for label editing

上级 8af6ebd3
......@@ -64,6 +64,11 @@ class LabelDialog(QDialog):
self.labelList.currentItemChanged.connect(self.labelSelected)
layout.addWidget(self.labelList)
self.setLayout(layout)
# completion
completer = QCompleter()
completer.setCompletionMode(QCompleter.InlineCompletion)
completer.setModel(self.labelList.model())
self.edit.setCompleter(completer)
def addLabelHistory(self, label):
if self.labelList.findItems(label, Qt.MatchExactly):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册