Fix final QML warnings

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-16 16:30:47 +01:00
parent bc5a2ce5b0
commit 6b55490af8
2 changed files with 2 additions and 11 deletions

View file

@ -35,10 +35,11 @@ Item
{
id: stageMenu
height: parent.height
width: childrenRect.width + UM.Theme.getSize("default_margin").width
width: stageMenuRow.width + UM.Theme.getSize("default_margin").width
anchors.horizontalCenter: parent.horizontalCenter
Row
{
id: stageMenuRow
anchors.centerIn: parent
height: parent.height

View file

@ -18,16 +18,6 @@ Cura.ExpandableComponent
width: UM.Theme.getSize("layerview_menu_size").width
iconSource: UM.Theme.getIcon("pencil")
property var buttonTarget:
{
if(parent != null)
{
var force_binding = parent.y; // ensure this gets reevaluated when the panel moves
return base.mapFromItem(parent.parent, parent.buttonTarget.x, parent.buttonTarget.y)
}
return Qt.point(0,0)
}
Connections
{
target: UM.Preferences