Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Krita
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tusooa Zhu
Krita
Commits
2e53e25b
Commit
2e53e25b
authored
Feb 15, 2012
by
Sven Langkamp
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'krita_outline_update_langkamp'
parents
14664c79
1f650e26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
krita/ui/tool/kis_tool_freehand.cc
krita/ui/tool/kis_tool_freehand.cc
+3
-3
krita/ui/tool/kis_tool_freehand.h
krita/ui/tool/kis_tool_freehand.h
+1
-0
No files found.
krita/ui/tool/kis_tool_freehand.cc
View file @
2e53e25b
...
...
@@ -417,8 +417,7 @@ void KisToolFreehand::paint(QPainter& gc, const KoViewConverter &converter)
outlineMode
=
KisPaintOpSettings
::
CursorIsOutline
;
}
QPainterPath
path
=
getOutlinePath
(
m_outlineDocPoint
,
outlineMode
);
paintToolOutline
(
&
gc
,
pixelToView
(
path
));
paintToolOutline
(
&
gc
,
pixelToView
(
m_currentOutline
));
}
}
...
...
@@ -490,7 +489,8 @@ void KisToolFreehand::decreaseBrushSize()
void
KisToolFreehand
::
updateOutlineRect
()
{
QRectF
outlinePixelRect
=
getOutlinePath
(
m_outlineDocPoint
,
KisPaintOpSettings
::
CursorIsOutline
).
boundingRect
();
m_currentOutline
=
getOutlinePath
(
m_outlineDocPoint
,
KisPaintOpSettings
::
CursorIsOutline
);
QRectF
outlinePixelRect
=
m_currentOutline
.
boundingRect
();
QRectF
outlineDocRect
=
currentImage
()
->
pixelToDocument
(
outlinePixelRect
);
if
(
!
m_oldOutlineRect
.
isEmpty
())
{
...
...
krita/ui/tool/kis_tool_freehand.h
View file @
2e53e25b
...
...
@@ -134,6 +134,7 @@ private:
QPointF
m_outlineDocPoint
;
QTimer
m_outlineTimer
;
QRectF
m_oldOutlineRect
;
QPainterPath
m_currentOutline
;
bool
m_explicitShowOutline
;
KAction
*
m_increaseBrushSize
;
...
...
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