Commit 7b782fe1 authored by Sven Langkamp's avatar Sven Langkamp Committed by Halla Rempt
Browse files

hide stroke widget in path tool

BUG:331556
parent 469e660f
......@@ -44,6 +44,18 @@ void KisToolPath::mousePressEvent(KoPointerEvent *event)
DelegatedPathTool::mousePressEvent(event);
}
QList< QWidget* > KisToolPath::createOptionWidgets()
{
QList<QWidget*> widgets = DelegatedPathTool::createOptionWidgets();
QList<QWidget*> filteredWidgets;
foreach(QWidget* widget, widgets) {
if (widget->objectName() != "Stroke widget") {
filteredWidgets.push_back(widget);
}
}
return filteredWidgets;
}
__KisToolPathLocalTool::__KisToolPathLocalTool(KoCanvasBase * canvas, KisToolPath* parentTool)
: KoCreatePathTool(canvas), m_parentTool(parentTool) {}
......
......@@ -34,6 +34,7 @@ class KisToolPath;
class __KisToolPathLocalTool : public KoCreatePathTool {
public:
__KisToolPathLocalTool(KoCanvasBase * canvas, KisToolPath* parentTool);
virtual void paintPath(KoPathShape &path, QPainter &painter, const KoViewConverter &converter);
virtual void addPathShape(KoPathShape* pathShape);
......@@ -56,6 +57,8 @@ public:
KisToolPath(KoCanvasBase * canvas);
void mousePressEvent(KoPointerEvent *event);
virtual QList< QWidget* > createOptionWidgets();
protected:
void requestStrokeCancellation();
void requestStrokeEnd();
......
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