Added id's to printer button, installed plugins, material fields and profile tab for integration tests

This commit is contained in:
Satish 2019-03-01 12:47:29 +01:00
parent 38a9206898
commit c98a73f8fd
4 changed files with 7 additions and 2 deletions

View File

@ -58,6 +58,7 @@ Item
Cura.ConfigurationMenu Cura.ConfigurationMenu
{ {
id: printerSetup
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredWidth: itemRow.width - machineSelection.width - printSetupSelectorItem.width - 2 * UM.Theme.getSize("default_lining").width Layout.preferredWidth: itemRow.width - machineSelection.width - printSetupSelectorItem.width - 2 * UM.Theme.getSize("default_lining").width

View File

@ -42,6 +42,7 @@ ScrollView
} }
Rectangle Rectangle
{ {
id: installedPlugins
color: "transparent" color: "transparent"
width: parent.width width: parent.width
height: childrenRect.height + UM.Theme.getSize("default_margin").width height: childrenRect.height + UM.Theme.getSize("default_margin").width
@ -74,6 +75,7 @@ ScrollView
Rectangle Rectangle
{ {
id: installedMaterials
color: "transparent" color: "transparent"
width: parent.width width: parent.width
height: childrenRect.height + UM.Theme.getSize("default_margin").width height: childrenRect.height + UM.Theme.getSize("default_margin").width

View File

@ -90,7 +90,7 @@ TabView
y: UM.Theme.getSize("default_lining").height y: UM.Theme.getSize("default_lining").height
width: base.width width: base.width
property real rowHeight: textField.height + UM.Theme.getSize("default_lining").height property real rowHeight: brandTextField.height + UM.Theme.getSize("default_lining").height
MessageDialog MessageDialog
{ {
@ -143,7 +143,7 @@ TabView
Label { width: scrollView.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Brand") } Label { width: scrollView.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Brand") }
ReadOnlyTextField ReadOnlyTextField
{ {
id: textField; id: brandTextField;
width: scrollView.columnWidth; width: scrollView.columnWidth;
text: properties.brand; text: properties.brand;
readOnly: !base.editingEnabled; readOnly: !base.editingEnabled;
@ -153,6 +153,7 @@ TabView
Label { width: scrollView.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Material Type") } Label { width: scrollView.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Material Type") }
ReadOnlyTextField ReadOnlyTextField
{ {
id: materialTypeField;
width: scrollView.columnWidth; width: scrollView.columnWidth;
text: properties.material; text: properties.material;
readOnly: !base.editingEnabled; readOnly: !base.editingEnabled;

View File

@ -27,6 +27,7 @@ Tab
{ {
anchors.fill: parent anchors.fill: parent
anchors.margins: UM.Theme.getSize("default_margin").width anchors.margins: UM.Theme.getSize("default_margin").width
id: profileSettingsView
Component Component
{ {