mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Moved some properties to bindings due to bug in qt 5.5.1
CURA-1494
This commit is contained in:
parent
0a84867132
commit
68837a089a
1 changed files with 7 additions and 3 deletions
|
@ -22,6 +22,10 @@ Item {
|
|||
property var showInheritButton: true
|
||||
property var doDepthIdentation: true
|
||||
|
||||
// Create properties to put property provider stuff in (bindings break in qt 5.5.1 otherwise)
|
||||
property var state: propertyProvider.properties.state
|
||||
property var stackLevel: propertyProvider.stackLevel
|
||||
|
||||
signal contextMenuRequested()
|
||||
signal showTooltip(string text);
|
||||
signal hideTooltip();
|
||||
|
@ -128,7 +132,7 @@ Item {
|
|||
{
|
||||
id: revertButton;
|
||||
|
||||
visible: propertyProvider.stackLevel == 0 && base.showRevertButton
|
||||
visible: base.stackLevel == 0 && base.showRevertButton
|
||||
|
||||
height: parent.height;
|
||||
width: height;
|
||||
|
@ -155,14 +159,14 @@ Item {
|
|||
id: inheritButton;
|
||||
|
||||
//visible: has_profile_value && base.has_inherit_function && base.is_enabled
|
||||
visible: propertyProvider.properties.state == "InstanceState.User" && propertyProvider.stackLevel > 0 && base.showInheritButton
|
||||
visible: base.state == "InstanceState.User" && base.stackLevel > 0 && base.showInheritButton
|
||||
|
||||
height: parent.height;
|
||||
width: height;
|
||||
|
||||
onClicked: {
|
||||
focus = true;
|
||||
propertyProvider.removeFromContainer(propertyProvider.stackLevel)
|
||||
propertyProvider.removeFromContainer(base.stackLevel)
|
||||
}
|
||||
|
||||
backgroundColor: UM.Theme.getColor("setting_control");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue