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
Cantor
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
Education
Cantor
Commits
3e44e3ab
Commit
3e44e3ab
authored
Jun 30, 2020
by
Filipe Saraiva
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Store the image entries of Cantor in worksheet file format
parent
334cf772
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/imageentry.cpp
src/imageentry.cpp
+6
-0
No files found.
src/imageentry.cpp
View file @
3e44e3ab
...
...
@@ -153,10 +153,16 @@ QDomElement ImageEntry::toXml(QDomDocument& doc, KZip* archive)
if
(
unitNames
.
isEmpty
())
unitNames
<<
QLatin1String
(
"(auto)"
)
<<
QLatin1String
(
"px"
)
<<
QLatin1String
(
"%"
);
archive
->
addLocalFile
(
m_imagePath
,
QUrl
::
fromLocalFile
(
m_imagePath
).
fileName
());
QDomElement
image
=
doc
.
createElement
(
QLatin1String
(
"Image"
));
QDomElement
path
=
doc
.
createElement
(
QLatin1String
(
"Path"
));
QDomElement
fileName
=
doc
.
createElement
(
QLatin1String
(
"FileName"
));
QDomText
pathText
=
doc
.
createTextNode
(
m_imagePath
);
QDomText
fileNameText
=
doc
.
createTextNode
(
QUrl
::
fromLocalFile
(
m_imagePath
).
fileName
());
path
.
appendChild
(
pathText
);
fileName
.
appendChild
(
fileNameText
);
image
.
appendChild
(
fileName
);
image
.
appendChild
(
path
);
QDomElement
display
=
doc
.
createElement
(
QLatin1String
(
"Display"
));
display
.
setAttribute
(
QLatin1String
(
"width"
),
m_displaySize
.
width
);
...
...
Filipe Saraiva
@filipesaraiva
mentioned in merge request
!16 (closed)
·
Jul 07, 2020
mentioned in merge request
!16 (closed)
mentioned in merge request !16
Toggle commit list
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