Skip to content
GitLab
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
61125872
Commit
61125872
authored
Jul 07, 2011
by
Sven Langkamp
Browse files
load and save layer visibility in openraster
BUG:277200
parent
fe734322
Changes
2
Hide whitespace changes
Inline
Side-by-side
krita/ui/openrastertk/kis_open_raster_stack_load_visitor.cpp
View file @
61125872
...
...
@@ -105,6 +105,11 @@ void KisOpenRasterStackLoadVisitor::loadLayerInfo(const QDomElement& elem, KisLa
layer
->
setName
(
elem
.
attribute
(
"name"
));
layer
->
setX
(
elem
.
attribute
(
"x"
).
toInt
());
layer
->
setY
(
elem
.
attribute
(
"y"
).
toInt
());
if
(
elem
.
attribute
(
"visibility"
)
==
"hidden"
)
{
layer
->
setVisible
(
false
);
}
else
{
layer
->
setVisible
(
true
);
}
QString
compop
=
elem
.
attribute
(
"composite-op"
);
if
(
compop
.
startsWith
(
"svg:"
))
{
...
...
krita/ui/openrastertk/kis_open_raster_stack_save_visitor.cpp
View file @
61125872
...
...
@@ -54,6 +54,7 @@ void KisOpenRasterStackSaveVisitor::saveLayerInfo(QDomElement& elt, KisLayer* la
{
elt
.
setAttribute
(
"name"
,
layer
->
name
());
elt
.
setAttribute
(
"opacity"
,
layer
->
opacity
()
/
255.0
);
elt
.
setAttribute
(
"visibility"
,
layer
->
visible
()
?
"visible"
:
"hidden"
);
QString
compop
=
layer
->
compositeOpId
();
if
(
layer
->
compositeOpId
()
==
COMPOSITE_CLEAR
)
compop
=
"svg:clear"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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