Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
Calligra
Commits
0ac21285
Commit
0ac21285
authored
Mar 30, 2014
by
Sven Langkamp
Browse files
hide stroke widget in path tool
BUG:331556
parent
fd2540c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
krita/plugins/tools/defaulttools/kis_tool_path.cc
View file @
0ac21285
...
...
@@ -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
)
{}
...
...
krita/plugins/tools/defaulttools/kis_tool_path.h
View file @
0ac21285
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment