Krita Source Code Documentation
Loading...
Searching...
No Matches
KisSelectionToolFactoryBase.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
7
9
14
18
20{
23
24 actions << actionRegistry->makeQAction("selection_tool_mode_add", this);
25 actions << actionRegistry->makeQAction("selection_tool_mode_replace", this);
26 actions << actionRegistry->makeQAction("selection_tool_mode_subtract", this);
27 actions << actionRegistry->makeQAction("selection_tool_mode_intersect", this);
28
29 return actions;
30}
31
36
41
43{
46
47 actions << actionRegistry->makeQAction("undo_polygon_selection", this);
48 actions << actionRegistry->makeQAction("selection_tool_mode_add", this);
49
50 return actions;
51}
QAction * makeQAction(const QString &name, QObject *parent=0)
static KisActionRegistry * instance()
QList< QAction * > createActionsImpl() override
createActionsImpl should be reimplemented if the tool needs any actions. The actions should have a va...
QList< QAction * > createActionsImpl() override
createActionsImpl should be reimplemented if the tool needs any actions. The actions should have a va...
QList< QAction * > createActionsImpl() override
createActionsImpl should be reimplemented if the tool needs any actions. The actions should have a va...