Fix some alignment related warnings.

This commit is contained in:
Filippo Scognamiglio
2018-10-28 01:08:21 +02:00
parent 162f59d220
commit 2ea119fb31
6 changed files with 13 additions and 24 deletions

View File

@@ -35,8 +35,7 @@ RowLayout {
signal newValue(real newValue);
id: setting_component
anchors.left: parent.left
anchors.right: parent.right
Layout.fillWidth: true
onValueChanged: {
check.checked = !(value == 0);
@@ -68,7 +67,7 @@ RowLayout {
}
}
SizedLabel {
anchors { top: parent.top; bottom: parent.bottom }
Layout.fillHeight: true
text: Math.round(((value - min_value) / (max_value - min_value)) * 100) + "%"
}
}