Changeset View
Changeset View
Standalone View
Standalone View
plugins/tools/defaulttool/defaulttool/DefaultToolFactory.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | DefaultToolFactory::~DefaultToolFactory() | 44 | DefaultToolFactory::~DefaultToolFactory() | ||
45 | { | 45 | { | ||
46 | } | 46 | } | ||
47 | 47 | | |||
48 | KoToolBase *DefaultToolFactory::createTool(KoCanvasBase *canvas) | 48 | KoToolBase *DefaultToolFactory::createTool(KoCanvasBase *canvas) | ||
49 | { | 49 | { | ||
50 | return new DefaultTool(canvas); | 50 | return new DefaultTool(canvas, true); | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | QList<QAction *> DefaultToolFactory::createActionsImpl() | 53 | QList<QAction *> DefaultToolFactory::createActionsImpl() | ||
54 | { | 54 | { | ||
55 | KisActionRegistry *actionRegistry = KisActionRegistry::instance(); | 55 | KisActionRegistry *actionRegistry = KisActionRegistry::instance(); | ||
56 | 56 | | |||
57 | QList<QAction *> actions; | 57 | QList<QAction *> actions; | ||
58 | actions << actionRegistry->makeQAction("object_order_front"); | 58 | actions << actionRegistry->makeQAction("object_order_front"); | ||
Show All 33 Lines |