Layer view now has an awesome slider!

This commit is contained in:
Jaime van Kessel 2015-04-24 12:31:40 +02:00
parent 32e3706677
commit 0bc860a5d6
3 changed files with 49 additions and 4 deletions

35
LayerView.qml Normal file
View file

@ -0,0 +1,35 @@
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
/*Rectangle
{
color: "blue"
width: 250
height:250
}*/
Slider
{
width: 10
height: 250
anchors.right : parent.right
//anchors.fill: parent
//Layout.preferredHeight: UM.Theme.sizes.section.height;
orientation: Qt.Vertical
minimumValue: 0;
maximumValue: 100;
value: 50;
onValueChanged: UM.ActiveView.triggerAction("setLayer", value)
style: UM.Theme.styles.slider;
//Component.onCompleted: {console.log(UM.Theme.styles.slider)}
}
}