Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Datovka projects
mobile Datovka
Commits
c3f3b7ae
Commit
c3f3b7ae
authored
Nov 29, 2018
by
Martin Straka
Browse files
Used round instead of ceil in QML
parent
65b80476
Changes
1
Hide whitespace changes
Inline
Side-by-side
qml/pages/PageSendMessage.qml
View file @
c3f3b7ae
...
...
@@ -92,7 +92,7 @@ Item {
return
true
}
if
(
totalAttachmentSizeBytes
>=
1024
)
{
attachmentsSizeLabel
.
text
=
qsTr
(
"
Total size of attachments is ~%1 kB.
"
).
arg
(
Math
.
ceil
(
totalAttachmentSizeBytes
/
1024
))
attachmentsSizeLabel
.
text
=
qsTr
(
"
Total size of attachments is ~%1 kB.
"
).
arg
(
Math
.
round
(
totalAttachmentSizeBytes
/
1024
))
}
else
{
attachmentsSizeLabel
.
text
=
qsTr
(
"
Total size of attachments is %1 B.
"
).
arg
(
totalAttachmentSizeBytes
)
}
...
...
Write
Preview
Supports
Markdown
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