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
9765d7ac
Commit
9765d7ac
authored
Jan 05, 2008
by
Jan Hambrecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notify dependent shapes if a shape was deleted
svn path=/trunk/koffice/; revision=757450
parent
2d9e9d46
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
libs/flake/KoConnectionShape.cpp
libs/flake/KoConnectionShape.cpp
+9
-1
libs/flake/KoShape.cpp
libs/flake/KoShape.cpp
+1
-0
libs/flake/KoShape.h
libs/flake/KoShape.h
+2
-1
No files found.
libs/flake/KoConnectionShape.cpp
View file @
9765d7ac
...
...
@@ -451,8 +451,16 @@ void KoConnectionShape::shapeChanged(ChangeType type)
}
}
void
KoConnectionShape
::
notifyShapeChanged
(
KoShape
*
,
ChangeT
ype
)
void
KoConnectionShape
::
notifyShapeChanged
(
KoShape
*
shape
,
ChangeType
t
ype
)
{
if
(
type
==
KoShape
::
Deleted
)
{
if
(
shape
==
d
->
shape1
)
setConnection1
(
0
,
-
1
);
else
if
(
shape
==
d
->
shape2
)
setConnection2
(
0
,
-
1
);
}
if
(
isParametricShape
()
)
updateConnections
();
}
libs/flake/KoShape.cpp
View file @
9765d7ac
...
...
@@ -137,6 +137,7 @@ KoShape::KoShape()
KoShape
::~
KoShape
()
{
d
->
shapeChanged
(
Deleted
);
delete
d
;
}
...
...
libs/flake/KoShape.h
View file @
9765d7ac
...
...
@@ -106,7 +106,8 @@ public:
SizeChanged
,
///< used after a setSize()
GenericMatrixChange
,
///< used after the matrix was changed without knowing which property explicitly changed
ParentChanged
,
///< used after a setParent()
CollisionDetected
///< used when another shape moved in our boundingrect
CollisionDetected
,
///< used when another shape moved in our boundingrect
Deleted
///< the shape was deleted
};
/**
...
...
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