mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 13:06:05 +08:00
Fix add-by-ip page layout
CURA-6057
This commit is contained in:
parent
4bd3088b58
commit
70e97304d1
@ -48,17 +48,19 @@ Item
|
|||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
width: parent.width
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
id: explainLabel
|
id: explainLabel
|
||||||
height: contentHeight
|
height: contentHeight
|
||||||
width: parent.width
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
|
||||||
font: UM.Theme.getFont("default")
|
|
||||||
|
|
||||||
|
font: UM.Theme.getFont("default")
|
||||||
text: catalog.i18nc("@label", "Enter the IP address or hostname of your printer on the network.")
|
text: catalog.i18nc("@label", "Enter the IP address or hostname of your printer on the network.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,8 +68,10 @@ Item
|
|||||||
{
|
{
|
||||||
id: userInputFields
|
id: userInputFields
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
width: parent.width
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
anchors.top: explainLabel.bottom
|
anchors.top: explainLabel.bottom
|
||||||
|
anchors.topMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
Cura.TextField
|
Cura.TextField
|
||||||
{
|
{
|
||||||
@ -76,7 +80,6 @@ Item
|
|||||||
height: addPrinterButton.height
|
height: addPrinterButton.height
|
||||||
anchors.verticalCenter: addPrinterButton.verticalCenter
|
anchors.verticalCenter: addPrinterButton.verticalCenter
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
|
||||||
|
|
||||||
validator: RegExpValidator
|
validator: RegExpValidator
|
||||||
{
|
{
|
||||||
@ -92,8 +95,7 @@ Item
|
|||||||
id: addPrinterButton
|
id: addPrinterButton
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: hostnameField.right
|
anchors.left: hostnameField.right
|
||||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
anchors.leftMargin: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
text: catalog.i18nc("@button", "Add")
|
text: catalog.i18nc("@button", "Add")
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user