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
347df8e5
Commit
347df8e5
authored
May 23, 2008
by
Jan Hambrecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement optionally checking visibility recursively
svn path=/trunk/koffice/; revision=811861
parent
f8ed4304
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
libs/flake/KoShape.cpp
libs/flake/KoShape.cpp
+12
-3
libs/flake/KoShape.h
libs/flake/KoShape.h
+2
-1
No files found.
libs/flake/KoShape.cpp
View file @
347df8e5
...
...
@@ -542,15 +542,24 @@ void KoShape::setVisible(bool on) {
d
->
visible
=
on
;
}
bool
KoShape
::
isVisible
()
const
{
return
d
->
visible
;
bool
KoShape
::
isVisible
(
bool
recursive
)
const
{
if
(
!
recursive
)
return
d
->
visible
;
KoShapeContainer
*
parentShape
=
parent
();
while
(
parentShape
)
{
if
(
!
parentShape
->
isVisible
()
)
return
false
;
parentShape
=
parentShape
->
parent
();
}
return
true
;
}
void
KoShape
::
setPrintable
(
bool
on
)
{
d
->
printable
=
on
;
}
bool
KoShape
::
isPrintable
()
const
{
if
(
d
->
visible
)
...
...
libs/flake/KoShape.h
View file @
347df8e5
...
...
@@ -351,9 +351,10 @@ public:
* Returns current visibility state of this shape.
* Being visible means being painted, as well as being used for
* things like guidelines or searches.
* @param recursive when true, checks visibility recursively
* @return current visibility state of this shape.
*/
bool
isVisible
()
const
;
bool
isVisible
(
bool
recursive
=
false
)
const
;
/**
* Changes the shape to be printable or not. The default is true.
...
...
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