Changed parseInt to Math.floor

This commit is contained in:
Mark 2017-10-11 16:47:40 +02:00
parent 331574eec0
commit 3a7fbdb173
7 changed files with 64 additions and 64 deletions

View file

@ -108,15 +108,15 @@ TabView
{
width: scrollView.columnWidth;
height: parent.rowHeight;
spacing: parseInt(UM.Theme.getSize("default_margin").width/2)
spacing: Math.floor(UM.Theme.getSize("default_margin").width/2)
Rectangle
{
id: colorSelector
color: properties.color_code
width: parseInt(colorLabel.height * 0.75)
height: parseInt(colorLabel.height * 0.75)
width: Math.floor(colorLabel.height * 0.75)
height: Math.floor(colorLabel.height * 0.75)
border.width: UM.Theme.getSize("default_lining").height
anchors.verticalCenter: parent.verticalCenter

View file

@ -67,7 +67,7 @@ UM.ManagementPage
}
Label
{
width: parseInt((parent.width * 0.3))
width: Math.floor((parent.width * 0.3))
text: model.metadata.material
elide: Text.ElideRight
font.italic: model.id == activeId