mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Add 'plugins/LayerView/' from commit 'ffcf5c7885
'
git-subtree-dir: plugins/LayerView git-subtree-mainline:bda10b5ce5
git-subtree-split:ffcf5c7885
This commit is contained in:
commit
81aac4a1c1
3 changed files with 104 additions and 0 deletions
35
plugins/LayerView/LayerView.qml
Normal file
35
plugins/LayerView/LayerView.qml
Normal 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)}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue