mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Fix final QML warnings
CURA-5785
This commit is contained in:
parent
bc5a2ce5b0
commit
6b55490af8
2 changed files with 2 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue