mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
30 lines
617 B
QML
30 lines
617 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
|
|
orientation: Qt.Vertical
|
|
minimumValue: 0;
|
|
maximumValue: UM.LayerView.numLayers;
|
|
|
|
value: UM.LayerView.currentLayer
|
|
onValueChanged: UM.LayerView.setCurrentLayer(value)
|
|
|
|
style: UM.Theme.styles.slider;
|
|
}
|
|
}
|