Commit c5b490fe authored by Boudewijn Rempt's avatar Boudewijn Rempt

Add undo to the polygonal selection tool

parent 3a5286cc
......@@ -72,6 +72,19 @@ public:
KoToolBase * createTool(KoCanvasBase *canvas) override {
return new KisToolSelectPolygonal(canvas);
}
QList<QAction *> createActionsImpl()
{
KisActionRegistry *actionRegistry = KisActionRegistry::instance();
QList<QAction *> actions = KisSelectionToolFactoryBase::createActionsImpl();
actions << actionRegistry->makeQAction("undo_polygon_selection");
actions << actionRegistry->makeQAction("selection_tool_mode_add");
return actions;
}
};
#endif //__selecttoolpolygonal_h__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment