Fix PerObjectSettingsPanel layout

This commit is contained in:
fieldOfView 2015-12-09 13:02:30 +01:00
parent 6863e15e20
commit 03e9694e32

View file

@ -20,7 +20,7 @@ Item {
anchors.top: parent.top;
anchors.left: parent.left;
spacing: UM.Theme.sizes.default_lining.height;
spacing: UM.Theme.sizes.default_margin.height;
UM.SettingItem {
id: profileSelection
@ -28,7 +28,7 @@ Item {
width: UM.Theme.sizes.setting.width;
height: UM.Theme.sizes.setting.height;
name: catalog.i18nc("@label", "Profile")
name: catalog.i18nc("@label", "Object profile")
type: "enum"
indent: false
@ -44,11 +44,10 @@ Item {
}
}
Item
{
height: UM.Theme.sizes.default_margin.height
width: parent.width
}
Column {
id: customisedSettings
spacing: UM.Theme.sizes.default_lining.height;
width: UM.Theme.sizes.setting.width + UM.Theme.sizes.setting.height/2;
Repeater {
id: settings;
@ -76,13 +75,11 @@ Item {
Button
{
anchors.left: parent.left;
anchors.leftMargin: UM.Theme.sizes.default_margin.width;
anchors.left: parent.right;
width: UM.Theme.sizes.setting.height;
height: UM.Theme.sizes.setting.height;
opacity: parent.hovered || hovered ? 1 : 0;
onClicked: UM.ActiveTool.properties.Model.removeSettingOverride(UM.ActiveTool.properties.Model.getItem(base.currentIndex).id, model.key)
style: ButtonStyle
@ -106,11 +103,6 @@ Item {
}
}
}
Item
{
height: UM.Theme.sizes.default_margin.height
width: parent.width
}
Button