mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
MaterialInfo: Put height and fonts by QML-elements for 'by material-type'. [CURA-6141]
This commit is contained in:
parent
654cd8e645
commit
7fdbb11f49
1 changed files with 3 additions and 2 deletions
|
@ -140,16 +140,16 @@ Column
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
model: byMaterialType.getMaterialTable()
|
model: byMaterialType.getMaterialTable()
|
||||||
|
|
||||||
Row
|
Row
|
||||||
{
|
{
|
||||||
//property var rowLength: modelData.length
|
|
||||||
Repeater
|
Repeater
|
||||||
{
|
{
|
||||||
model: modelData
|
model: modelData
|
||||||
Text
|
Text
|
||||||
{
|
{
|
||||||
width: Math.round(byMaterialType.width * byMaterialType.columnWidthMultipliers[index])
|
width: Math.round(byMaterialType.width * byMaterialType.columnWidthMultipliers[index])
|
||||||
|
height: contentHeight
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
text: modelData
|
text: modelData
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,7 @@ Column
|
||||||
}
|
}
|
||||||
|
|
||||||
width: parent.width - 2 * UM.Theme.getSize("default_margin").width
|
width: parent.width - 2 * UM.Theme.getSize("default_margin").width
|
||||||
|
height: childrenRect.height
|
||||||
color: UM.Theme.getColor("text")
|
color: UM.Theme.getColor("text")
|
||||||
font: UM.Theme.getFont("default")
|
font: UM.Theme.getFont("default")
|
||||||
renderType: Text.NativeRendering
|
renderType: Text.NativeRendering
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue