Skip to content

Commit

Permalink
Add the default paint tool actions to the line tool
Browse files Browse the repository at this point in the history
BUG:412096
  • Loading branch information
hallarempt committed Sep 28, 2019
1 parent 58a73c4 commit d4182de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions plugins/tools/basictools/kis_tool_line.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
#include <kis_debug.h>
#include <kis_cursor.h>
#include <brushengine/kis_paintop_registry.h>
#include "kis_figure_painting_tool_helper.h"
#include "kis_canvas2.h"
#include <kis_figure_painting_tool_helper.h>
#include <kis_canvas2.h>
#include <kis_action_registry.h>
#include <kis_painting_information_builder.h>

#include "kis_painting_information_builder.h"
#include "kis_tool_line_helper.h"


const KisCoordinatesConverter* getCoordinatesConverter(KoCanvasBase * canvas)
{
KisCanvas2 *kritaCanvas = dynamic_cast<KisCanvas2*>(canvas);
Expand Down Expand Up @@ -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");
}


14 changes: 7 additions & 7 deletions plugins/tools/basictools/kis_tool_line.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
#include <kconfig.h>
#include <kconfiggroup.h>
#include <QScopedPointer>
#include "kis_global.h"
#include "kis_types.h"
#include "KoToolFactoryBase.h"
#include "flake/kis_node_shape.h"
#include "kis_signal_compressor.h"
#include <kis_global.h>
#include <kis_types.h>
#include <KisToolPaintFactoryBase.h>
#include <flake/kis_node_shape.h>
#include <kis_signal_compressor.h>
#include <kis_icon.h>
#include <KoIcon.h>

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d4182de

Please sign in to comment.