Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2019-09-18 12:04:15 +0300
committerJaime van Kessel <nallath@gmail.com>2019-09-18 12:24:11 +0300
commit549eb21a5a7d86ec2ca17f517207f82fd3507762 (patch)
treed0bd6b2d3d2f52d2b4197ac3136945e498cf07bd /plugins/MachineSettingsAction
parent75c7a6fa6262b4a8e0b977af92913df34b5340bf (diff)
Simplify the machinesettings qml
Diffstat (limited to 'plugins/MachineSettingsAction')
-rw-r--r--plugins/MachineSettingsAction/MachineSettingsPrinterTab.qml59
1 files changed, 29 insertions, 30 deletions
diff --git a/plugins/MachineSettingsAction/MachineSettingsPrinterTab.qml b/plugins/MachineSettingsAction/MachineSettingsPrinterTab.qml
index d3078875de..3566935f50 100644
--- a/plugins/MachineSettingsAction/MachineSettingsPrinterTab.qml
+++ b/plugins/MachineSettingsAction/MachineSettingsPrinterTab.qml
@@ -3,6 +3,7 @@
import QtQuick 2.10
import QtQuick.Controls 2.3
+import QtQuick.Layouts 1.3
import UM 1.3 as UM
import Cura 1.1 as Cura
@@ -28,24 +29,25 @@ Item
property var forceUpdateFunction: manager.forceUpdate
- Item
+ RowLayout
{
id: upperBlock
- anchors.top: parent.top
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.margins: UM.Theme.getSize("default_margin").width
-
- height: childrenRect.height
-
+ anchors
+ {
+ top: parent.top
+ left: parent.left
+ right: parent.right
+ margins: UM.Theme.getSize("default_margin").width
+ }
+ spacing: UM.Theme.getSize("default_margin").width
+
// =======================================
// Left-side column for "Printer Settings"
// =======================================
Column
{
- anchors.top: parent.top
- anchors.left: parent.left
- width: base.columnWidth
+ Layout.fillWidth: true
+ Layout.alignment: Qt.AlignTop
spacing: base.columnSpacing
@@ -173,9 +175,8 @@ Item
// =======================================
Column
{
- anchors.top: parent.top
- anchors.right: parent.right
- width: base.columnWidth
+ Layout.fillWidth: true
+ Layout.alignment: Qt.AlignTop
spacing: base.columnSpacing
@@ -329,22 +330,23 @@ Item
}
}
- Item // Start and End G-code
+ RowLayout // Start and End G-code
{
id: lowerBlock
- anchors.top: upperBlock.bottom
- anchors.bottom: parent.bottom
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.margins: UM.Theme.getSize("default_margin").width
+ spacing: UM.Theme.getSize("default_margin").width
+ anchors
+ {
+ top: upperBlock.bottom
+ bottom: parent.bottom
+ left: parent.left
+ right: parent.right
+ margins: UM.Theme.getSize("default_margin").width
+ }
Cura.GcodeTextArea // "Start G-code"
{
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.bottomMargin: UM.Theme.getSize("default_margin").height
- anchors.left: parent.left
- width: base.columnWidth - UM.Theme.getSize("default_margin").width
+ Layout.fillWidth: true
+ Layout.fillHeight: true
labelText: catalog.i18nc("@title:label", "Start G-code")
containerStackId: machineStackId
@@ -354,11 +356,8 @@ Item
Cura.GcodeTextArea // "End G-code"
{
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- anchors.bottomMargin: UM.Theme.getSize("default_margin").height
- anchors.right: parent.right
- width: base.columnWidth - UM.Theme.getSize("default_margin").width
+ Layout.fillWidth: true
+ Layout.fillHeight: true
labelText: catalog.i18nc("@title:label", "End G-code")
containerStackId: machineStackId