T466: Added hiding of properties menu

This commit is contained in:
Victor Larchenko 2016-10-14 17:06:53 +06:00 committed by Youness Alaoui
parent d7b4296cfc
commit 2ee5e2cb0b
3 changed files with 27 additions and 4 deletions

View file

@ -16,6 +16,7 @@ Rectangle
property int currentModeIndex;
property bool monitoringPrint: false
property bool hideSettings: Printer.hideSettings
Connections
{
target: Printer
@ -296,7 +297,7 @@ Rectangle
width: parent.width * 0.45 - 2 * UM.Theme.getSize("default_margin").width
font: UM.Theme.getFont("large")
color: UM.Theme.getColor("text")
visible: !monitoringPrint
visible: !monitoringPrint && !hideSettings
elide: Text.ElideRight
}
@ -308,7 +309,7 @@ Rectangle
anchors.rightMargin: UM.Theme.getSize("default_margin").width
anchors.top: headerSeparator.bottom
anchors.topMargin: UM.Theme.getSize("default_margin").height
visible: !monitoringPrint
visible: !monitoringPrint && !hideSettings
Component{
id: wizardDelegate
Button {
@ -432,7 +433,7 @@ Rectangle
anchors.topMargin: UM.Theme.getSize("default_margin").height
anchors.left: base.left
anchors.right: base.right
visible: !monitoringPrint
visible: !monitoringPrint && !hideSettings
delegate: StackViewDelegate
{