mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08:00
31 lines
617 B
QML
31 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;
|
|
}
|
|
}
|