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
George Gianacopoulos
Krita
Commits
ec884202
Commit
ec884202
authored
Aug 01, 2019
by
Halla Rempt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warning--: missing override
parent
e10a23ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
plugins/tools/basictools/kis_tool_move.cc
plugins/tools/basictools/kis_tool_move.cc
+3
-3
plugins/tools/basictools/kis_tool_move.h
plugins/tools/basictools/kis_tool_move.h
+2
-2
No files found.
plugins/tools/basictools/kis_tool_move.cc
View file @
ec884202
...
...
@@ -52,7 +52,7 @@
struct
KisToolMoveState
:
KisToolChangesTrackerData
,
boost
::
equality_comparable
<
KisToolMoveState
>
{
KisToolMoveState
(
QPoint
_accumulatedOffset
)
:
accumulatedOffset
(
_accumulatedOffset
)
{}
KisToolChangesTrackerData
*
clone
()
const
{
return
new
KisToolMoveState
(
*
this
);
}
KisToolChangesTrackerData
*
clone
()
const
override
{
return
new
KisToolMoveState
(
*
this
);
}
bool
operator
==
(
const
KisToolMoveState
&
rhs
)
{
return
accumulatedOffset
==
rhs
.
accumulatedOffset
;
...
...
@@ -246,7 +246,7 @@ void KisToolMove::notifyGuiAfterMove(bool showFloatingMessage)
}
}
bool
KisToolMove
::
tryEndPreviousStroke
(
KisNodeList
nodes
)
bool
KisToolMove
::
tryEndPreviousStroke
(
const
KisNodeList
&
nodes
)
{
if
(
!
m_strokeId
)
return
false
;
...
...
@@ -665,7 +665,7 @@ void KisToolMove::requestHandlesRectUpdate()
notifyGuiAfterMove
(
false
);
}
void
KisToolMove
::
slotNodeChanged
(
KisNodeList
nodes
)
void
KisToolMove
::
slotNodeChanged
(
const
KisNodeList
&
nodes
)
{
if
(
m_strokeId
&&
!
tryEndPreviousStroke
(
nodes
))
{
return
;
...
...
plugins/tools/basictools/kis_tool_move.h
View file @
ec884202
...
...
@@ -116,7 +116,7 @@ public Q_SLOTS:
void
moveBySpinX
(
int
newX
);
void
moveBySpinY
(
int
newY
);
void
slotNodeChanged
(
KisNodeList
nodes
);
void
slotNodeChanged
(
const
KisNodeList
&
nodes
);
void
slotSelectionChanged
();
void
commitChanges
();
...
...
@@ -135,7 +135,7 @@ private:
QPoint
currentOffset
()
const
;
void
notifyGuiAfterMove
(
bool
showFloatingMessage
=
true
);
bool
tryEndPreviousStroke
(
KisNodeList
nodes
);
bool
tryEndPreviousStroke
(
const
KisNodeList
&
nodes
);
KisNodeList
fetchSelectedNodes
(
MoveToolMode
mode
,
const
QPoint
*
pixelPoint
,
KisSelectionSP
selection
);
void
requestHandlesRectUpdate
();
...
...
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