From 7df5008d3c02827ce1b48aa37a0c930c45ac3dce Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 7 Jul 2016 17:32:11 +0200 Subject: [PATCH] Disable spool weight etc. fields since they are not yet functional Contributes to CURA-342 --- resources/qml/Preferences/MaterialView.qml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/qml/Preferences/MaterialView.qml b/resources/qml/Preferences/MaterialView.qml index c79b8867c1..6d5f218c06 100644 --- a/resources/qml/Preferences/MaterialView.qml +++ b/resources/qml/Preferences/MaterialView.qml @@ -127,40 +127,40 @@ TabView } Label { width: base.firstColumnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Filament Cost") } - ReadOnlySpinBox + SpinBox { width: base.secondColumnWidth; value: properties.spool_cost; prefix: base.currency - readOnly: !base.editingEnabled; + enabled: false } Label { width: base.firstColumnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Filament weight") } - ReadOnlySpinBox + SpinBox { width: base.secondColumnWidth; value: properties.spool_weight; suffix: "g"; stepSize: 10 - readOnly: !base.editingEnabled; + enabled: false } Label { width: base.firstColumnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Filament length") } - ReadOnlySpinBox + SpinBox { width: base.secondColumnWidth; value: parseFloat(properties.spool_length); suffix: "m"; - readOnly: !base.editingEnabled; + enabled: false } Label { width: base.firstColumnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Cost per Meter (Approx.)") } - ReadOnlySpinBox + SpinBox { width: base.secondColumnWidth; value: parseFloat(properties.cost_per_meter); suffix: catalog.i18nc("@label", "%1/m".arg(base.currency)); - readOnly: !base.editingEnabled; + enabled: false } Item { width: parent.width; height: UM.Theme.getSize("default_margin").height }