From d4182de09d5d6b962c780b5e900d8e3df8dcd0ed Mon Sep 17 00:00:00 2001 From: Boudewijn Rempt Date: Sat, 28 Sep 2019 10:37:16 +0200 Subject: [PATCH] Add the default paint tool actions to the line tool BUG:412096 --- plugins/tools/basictools/kis_tool_line.cc | 10 +++++----- plugins/tools/basictools/kis_tool_line.h | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/plugins/tools/basictools/kis_tool_line.cc b/plugins/tools/basictools/kis_tool_line.cc index ad6a3173a8..92bbbed53f 100644 --- a/plugins/tools/basictools/kis_tool_line.cc +++ b/plugins/tools/basictools/kis_tool_line.cc @@ -38,12 +38,14 @@ #include #include #include -#include "kis_figure_painting_tool_helper.h" -#include "kis_canvas2.h" +#include +#include +#include +#include -#include "kis_painting_information_builder.h" #include "kis_tool_line_helper.h" + const KisCoordinatesConverter* getCoordinatesConverter(KoCanvasBase * canvas) { KisCanvas2 *kritaCanvas = dynamic_cast(canvas); @@ -365,5 +367,3 @@ QString KisToolLine::quickHelp() const { return i18n("Alt+Drag will move the origin of the currently displayed line around, Shift+Drag will force you to draw straight lines"); } - - diff --git a/plugins/tools/basictools/kis_tool_line.h b/plugins/tools/basictools/kis_tool_line.h index f376ea9eec..3e6ef2103f 100644 --- a/plugins/tools/basictools/kis_tool_line.h +++ b/plugins/tools/basictools/kis_tool_line.h @@ -28,11 +28,11 @@ #include #include #include -#include "kis_global.h" -#include "kis_types.h" -#include "KoToolFactoryBase.h" -#include "flake/kis_node_shape.h" -#include "kis_signal_compressor.h" +#include +#include +#include +#include +#include #include #include @@ -106,13 +106,13 @@ private Q_SLOTS: }; -class KisToolLineFactory : public KoToolFactoryBase +class KisToolLineFactory : public KisToolPaintFactoryBase { public: KisToolLineFactory() - : KoToolFactoryBase("KritaShape/KisToolLine") { + : KisToolPaintFactoryBase("KritaShape/KisToolLine") { setToolTip(i18n("Line Tool")); // Temporarily setSection(TOOL_TYPE_SHAPE);