Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Merge requests
!2655
further compactification of writeTo
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
further compactification of writeTo
j.0
into
main
Overview
0
Commits
10
Pipelines
2
Changes
2
Merged
Wuttke, Joachim
requested to merge
j.0
into
main
8 months ago
Overview
0
Commits
10
Pipelines
2
Changes
2
Expand
0
0
Merge request reports
Viewing commit
8a6407f9
Prev
Next
Show latest version
2 files
+
9
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
8a6407f9
+ XML::readBaseElement, use once
· 8a6407f9
Wuttke, Joachim
authored
8 months ago
GUI/Model/Data/Data1DItem.cpp
+
3
−
5
Options
@@ -180,10 +180,9 @@ void Data1DItem::readFrom(QXmlStreamReader* r)
while
(
r
->
readNextStartElement
())
{
QString
tag
=
r
->
name
().
toString
();
if
(
tag
==
Tag
::
BaseData
)
{
DataItem
::
readFrom
(
r
);
XML
::
gotoEndElementOfTag
(
r
,
tag
);
}
else
if
(
tag
==
Tag
::
LineType
)
if
(
tag
==
Tag
::
BaseData
)
XML
::
readBaseElement
<
DataItem
>
(
r
,
this
);
else
if
(
tag
==
Tag
::
LineType
)
m_line_type
=
XML
::
readTaggedString
(
r
,
tag
);
else
if
(
tag
==
Tag
::
Color
)
m_color
=
XML
::
readTaggedColor
(
r
,
tag
);
@@ -193,7 +192,6 @@ void Data1DItem::readFrom(QXmlStreamReader* r)
m_scatter_type
=
XML
::
readTaggedString
(
r
,
tag
);
else
if
(
tag
==
Tag
::
ScatterSize
)
m_scatter_size
=
XML
::
readTaggedDouble
(
r
,
tag
);
else
r
->
skipCurrentElement
();
}
Loading