Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KItinerary
Commits
e6335453
Commit
e6335453
authored
Jul 31, 2021
by
Volker Krause
Browse files
Merge branch 'release/21.08'
parents
e0766115
274e3878
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/jsonlddocument.cpp
View file @
e6335453
...
...
@@ -160,6 +160,11 @@ static QVariant propertyValue(const QMetaProperty &prop, const QJsonValue &v)
switch
(
prop
.
type
())
{
case
QVariant
::
String
:
if
(
v
.
isDouble
())
{
double
i
=
0.0
;
const
auto
frac
=
std
::
modf
(
v
.
toDouble
(),
&
i
);
if
(
frac
==
0.0
)
{
return
QString
::
number
(
static_cast
<
uint64_t
>
(
i
));
}
return
QString
::
number
(
v
.
toDouble
());
}
return
v
.
toString
();
...
...
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