提交 5261f390 编写于 作者: K Kentaro Wada

Fix regression of refactoring

上级 c509f8f8
......@@ -66,8 +66,8 @@ class LabelDialog(QtWidgets.QDialog):
layout.addWidget(self.labelList)
self.setLayout(layout)
# completion
completer = QtGui.QCompleter()
completer.setCompletionMode(QtGui.QCompleter.InlineCompletion)
completer = QtWidgets.QCompleter()
completer.setCompletionMode(QtWidgets.QCompleter.InlineCompletion)
completer.setModel(self.labelList.model())
self.edit.setCompleter(completer)
......
......@@ -26,7 +26,7 @@ def newButton(text, icon=None, slot=None):
def newAction(parent, text, slot=None, shortcut=None, icon=None,
tip=None, checkable=False, enabled=True):
"""Create a new action and assign callbacks, shortcuts, etc."""
a = QtGui.QAction(text, parent)
a = QtWidgets.QAction(text, parent)
if icon is not None:
a.setIcon(newIcon(icon))
if shortcut is not None:
......@@ -49,7 +49,7 @@ def addActions(widget, actions):
for action in actions:
if action is None:
widget.addSeparator()
elif isinstance(action, QtGui.QMenu):
elif isinstance(action, QtWidgets.QMenu):
widget.addMenu(action)
else:
widget.addAction(action)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册