Browse Source

Merge branch 'master' of https://github.com/Ultimaker/Cura

Tamara Hogenhout 9 years ago
parent
commit
7adc9732e8

+ 32 - 16
resources/qml/WizardPages/UltimakerCheckup.qml

@@ -8,48 +8,64 @@ import QtQuick.Window 2.1
 
 import UM 1.0 as UM
 
-ColumnLayout {
+Column
+{
     id: wizardPage
     property string title
-    property int pageWidth
-    property int pageHeight
     anchors.fill: parent;
 
-    Label {
+    Label
+    {
         text: parent.title
         font.pointSize: 18;
     }
 
-    Label {
+    Label
+    {
         //: Add Printer wizard page description
         text: qsTr("Please select the type of printer:");
     }
 
-    ScrollView {
-        Layout.fillWidth: true;
-
-        ListView {
+    ScrollView
+    {
+        height: parent.height - 50
+        width: parent.width
+        ListView
+        {
             id: machineList;
             model: UM.Models.availableMachinesModel
-            delegate: RadioButton {
+            delegate: RadioButton
+            {
                 exclusiveGroup: printerGroup;
                 text: model.name;
-                onClicked: {
+                onClicked:
+                {
                     ListView.view.currentIndex = index;
-
                 }
             }
         }
     }
 
-    Label {
+    Label
+    {
         //: Add Printer wizard field label
         text: qsTr("Printer Name:");
     }
 
-    TextField { id: machineName; Layout.fillWidth: true; text: machineList.model.getItem(machineList.currentIndex).name }
+    TextField
+    {
+        id: machineName; Layout.fillWidth: true; text: machineList.model.getItem(machineList.currentIndex).name
+
+    }
 
-    Item { Layout.fillWidth: true; Layout.fillHeight: true; }
+    Item
+    {
+        Layout.fillWidth: true;
+        Layout.fillHeight: true;
+    }
 
-    ExclusiveGroup { id: printerGroup; }
+    ExclusiveGroup
+    {
+        id: printerGroup;
+    }
 }

+ 32 - 15
resources/qml/WizardPages/UpgradeFirmware.qml

@@ -8,47 +8,64 @@ import QtQuick.Window 2.1
 
 import UM 1.0 as UM
 
-ColumnLayout {
+Column
+{
     id: wizardPage
     property string title
-    property int pageWidth
-    property int pageHeight
     anchors.fill: parent;
 
-    Label {
+    Label
+    {
         text: parent.title
         font.pointSize: 18;
     }
 
-    Label {
+    Label
+    {
         //: Add Printer wizard page description
         text: qsTr("Please select the type of printer:");
     }
 
-    ScrollView {
-        Layout.fillWidth: true;
-
-        ListView {
+    ScrollView
+    {
+        height: parent.height - 50
+        width: parent.width
+        ListView
+        {
             id: machineList;
             model: UM.Models.availableMachinesModel
-            delegate: RadioButton {
+            delegate: RadioButton
+            {
                 exclusiveGroup: printerGroup;
                 text: model.name;
-                onClicked: {
+                onClicked:
+                {
                     ListView.view.currentIndex = index;
                 }
             }
         }
     }
 
-    Label {
+    Label
+    {
         //: Add Printer wizard field label
         text: qsTr("Printer Name:");
     }
 
-    TextField { id: machineName; Layout.fillWidth: true; text: machineList.model.getItem(machineList.currentIndex).name }
+    TextField
+    {
+        id: machineName; Layout.fillWidth: true; text: machineList.model.getItem(machineList.currentIndex).name
 
-    Item { Layout.fillWidth: true; Layout.fillHeight: true; }
+    }
 
-    ExclusiveGroup { id: printerGroup; }
+    Item
+    {
+        Layout.fillWidth: true;
+        Layout.fillHeight: true;
+    }
+
+    ExclusiveGroup
+    {
+        id: printerGroup;
+    }
 }