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

Add shortcut for "add_point_to_edge"

上级 df820a3e
......@@ -330,11 +330,11 @@ class MainWindow(QtWidgets.QMainWindow):
shortcuts['undo_last_point'], 'undo',
self.tr('Undo last drawn point'), enabled=False)
addPointToEdge = action(
self.tr('Add Point to Edge'),
self.canvas.addPointToEdge,
None,
'edit',
self.tr('Add point to the nearest edge'),
text=self.tr('Add Point to Edge'),
slot=self.canvas.addPointToEdge,
shortcut=shortcuts['add_point_to_edge'],
icon='edit',
tip=self.tr('Add point to the nearest edge'),
enabled=False,
)
removePoint = action(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册