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
SDK
Umbrello
Commits
ed9ddf60
Commit
ed9ddf60
authored
Jul 01, 2014
by
Oliver Kellogg
Browse files
umbrello/layoutgenerator.cpp : fix indentation in function splitParameters()
parent
bbc6f725
Changes
1
Hide whitespace changes
Inline
Side-by-side
umbrello/layoutgenerator.cpp
View file @
ed9ddf60
...
...
@@ -367,7 +367,8 @@ bool LayoutGenerator::parseLine(const QString &line)
return
true
;
}
else
if
(
a
[
0
]
==
"node"
)
{
QString
key
=
fixID
(
a
[
1
]);
m_nodes
[
key
]
=
QRectF
(
a
[
2
].
toDouble
()
*
m_scale
,
a
[
3
].
toDouble
()
*
m_scale
,
a
[
4
].
toDouble
()
*
m_scale
,
a
[
5
].
toDouble
()
*
m_scale
);
m_nodes
[
key
]
=
QRectF
(
a
[
2
].
toDouble
()
*
m_scale
,
a
[
3
].
toDouble
()
*
m_scale
,
a
[
4
].
toDouble
()
*
m_scale
,
a
[
5
].
toDouble
()
*
m_scale
);
return
true
;
}
else
if
(
a
[
0
]
==
"edge"
)
{
QString
key
=
fixID
(
a
[
1
]
+
a
[
2
]);
...
...
@@ -429,18 +430,18 @@ bool LayoutGenerator::splitParameters(QMap<QString,QStringList> &map, const QStr
if
(
key
==
"pos"
)
{
value
.
remove
(
"e,"
);
data
=
value
.
split
(
' '
);
}
else
if
(
key
.
startsWith
(
'_'
))
{
data
=
value
.
split
(
' '
);
}
else
if
(
key
==
"label"
)
data
=
QStringList
()
<<
value
;
else
data
=
value
.
split
(
','
);
if
(
map
.
contains
(
key
))
map
[
key
]
<<
data
;
else
map
[
key
]
=
data
;
}
else
if
(
key
.
startsWith
(
'_'
))
{
data
=
value
.
split
(
' '
);
}
else
if
(
key
==
"label"
)
data
=
QStringList
()
<<
value
;
else
data
=
value
.
split
(
','
);
if
(
map
.
contains
(
key
))
map
[
key
]
<<
data
;
else
map
[
key
]
=
data
;
}
return
true
;
}
...
...
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