Fix horizontal scrolling/flicking of materialview

(probably windows-only)
This commit is contained in:
fieldOfView 2017-01-09 14:19:22 +01:00
parent 4ba8b4e7c8
commit c48f02a7eb

View File

@ -40,6 +40,7 @@ TabView
{ {
anchors.fill: parent anchors.fill: parent
horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
flickableItem.flickableDirection: Flickable.VerticalFlick
Flow Flow
{ {
@ -219,12 +220,12 @@ TabView
onEditingFinished: base.setMetaDataEntry("adhesion_info", properties.adhesion_info, text) onEditingFinished: base.setMetaDataEntry("adhesion_info", properties.adhesion_info, text)
} }
} }
function updateCostPerMeter() function updateCostPerMeter()
{ {
base.spoolLength = calculateSpoolLength(diameterSpinBox.value, densitySpinBox.value, spoolWeightSpinBox.value); base.spoolLength = calculateSpoolLength(diameterSpinBox.value, densitySpinBox.value, spoolWeightSpinBox.value);
base.costPerMeter = calculateCostPerMeter(spoolCostSpinBox.value); base.costPerMeter = calculateCostPerMeter(spoolCostSpinBox.value);
} }
} }
} }