Cura/plugins/LayerView/LayerView.qml
Tamara Hogenhout 53a94c23e1 Adds layer count
Brings back the layer count, the min & max. And it does not display these untill Cura is done slicing.

Fixes #117
2015-07-08 18:01:03 +02:00

32 lines
771 B
QML

// Copyright (c) 2015 Ultimaker B.V.
// Cura is released under the terms of the AGPLv3 or higher.
import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.1
import QtQuick.Controls.Styles 1.1
import UM 1.0 as UM
Item
{
width: 250
height: 250
Slider
{
width: 10
height: 250
anchors.right : parent.right
anchors.rightMargin: UM.Theme.sizes.default_margin.width * 2
orientation: Qt.Vertical
minimumValue: 0;
maximumValue: UM.LayerView.numLayers;
stepSize: 1
value: UM.LayerView.currentLayer
onValueChanged: UM.LayerView.setCurrentLayer(value)
style: UM.LayerView.getLayerActivity ? UM.Theme.styles.layerViewSlider : UM.Theme.styles.slider
}
}