mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 22:08:59 +08:00
15.10 disables the savebutton textfield
Contributes to: issue CURA-60
This commit is contained in:
parent
d6fde94e92
commit
a0c2bbb812
@ -48,7 +48,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printJobTextfield.text = abbrMachine + '_' + base.fileBaseName
|
//printJobTextfield.text = abbrMachine + '_' + base.fileBaseName
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
@ -59,57 +59,57 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle{
|
// Rectangle{
|
||||||
id: printJobRow
|
// id: printJobRow
|
||||||
implicitWidth: base.width;
|
// implicitWidth: base.width;
|
||||||
implicitHeight: UM.Theme.sizes.sidebar_header.height
|
// implicitHeight: UM.Theme.sizes.sidebar_header.height
|
||||||
anchors.top: parent.top
|
// anchors.top: parent.top
|
||||||
color: UM.Theme.colors.sidebar_header_bar
|
// color: UM.Theme.colors.sidebar_header_bar
|
||||||
Label{
|
// Label{
|
||||||
id: printJobTextfieldLabel
|
// id: printJobTextfieldLabel
|
||||||
text: catalog.i18nc("@label","Printjob name");
|
// text: catalog.i18nc("@label","Printjob name");
|
||||||
anchors.left: parent.left
|
// anchors.left: parent.left
|
||||||
anchors.leftMargin: UM.Theme.sizes.default_margin.width;
|
// anchors.leftMargin: UM.Theme.sizes.default_margin.width;
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
// anchors.verticalCenter: parent.verticalCenter
|
||||||
font: UM.Theme.fonts.default;
|
// font: UM.Theme.fonts.default;
|
||||||
color: UM.Theme.colors.text_white
|
// color: UM.Theme.colors.text_white
|
||||||
}
|
// }
|
||||||
TextField {
|
// TextField {
|
||||||
id: printJobTextfield
|
// id: printJobTextfield
|
||||||
anchors.right: parent.right
|
// anchors.right: parent.right
|
||||||
anchors.rightMargin: UM.Theme.sizes.default_margin.width;
|
// anchors.rightMargin: UM.Theme.sizes.default_margin.width;
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
// anchors.verticalCenter: parent.verticalCenter
|
||||||
width: parent.width/100*55
|
// width: parent.width/100*55
|
||||||
height: UM.Theme.sizes.sidebar_inputFields.height
|
// height: UM.Theme.sizes.sidebar_inputFields.height
|
||||||
property int unremovableSpacing: 5
|
// property int unremovableSpacing: 5
|
||||||
text: ''
|
// text: ''
|
||||||
onEditingFinished: {
|
// onEditingFinished: {
|
||||||
if (printJobTextfield.text != ''){
|
// if (printJobTextfield.text != ''){
|
||||||
printJobTextfield.focus = false
|
// printJobTextfield.focus = false
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
validator: RegExpValidator {
|
// validator: RegExpValidator {
|
||||||
regExp: /^[^\\ \/ \.]*$/
|
// regExp: /^[^\\ \/ \.]*$/
|
||||||
}
|
// }
|
||||||
style: TextFieldStyle{
|
// style: TextFieldStyle{
|
||||||
textColor: UM.Theme.colors.setting_control_text;
|
// textColor: UM.Theme.colors.setting_control_text;
|
||||||
font: UM.Theme.fonts.default;
|
// font: UM.Theme.fonts.default;
|
||||||
background: Rectangle {
|
// background: Rectangle {
|
||||||
radius: 0
|
// radius: 0
|
||||||
implicitWidth: parent.width
|
// implicitWidth: parent.width
|
||||||
implicitHeight: parent.height
|
// implicitHeight: parent.height
|
||||||
border.width: 1;
|
// border.width: 1;
|
||||||
border.color: UM.Theme.colors.slider_groove_border;
|
// border.color: UM.Theme.colors.slider_groove_border;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: specsRow
|
id: specsRow
|
||||||
implicitWidth: base.width
|
implicitWidth: base.width
|
||||||
implicitHeight: UM.Theme.sizes.sidebar_specs_bar.height
|
implicitHeight: UM.Theme.sizes.sidebar_specs_bar.height
|
||||||
anchors.top: printJobRow.bottom
|
anchors.top: parent.top
|
||||||
Item{
|
Item{
|
||||||
id: time
|
id: time
|
||||||
width: (parent.width / 100 * 45) - UM.Theme.sizes.default_margin.width * 2
|
width: (parent.width / 100 * 45) - UM.Theme.sizes.default_margin.width * 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user