diff options
Diffstat (limited to 'src/widgets/Slider.qml')
-rw-r--r-- | src/widgets/Slider.qml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/widgets/Slider.qml b/src/widgets/Slider.qml new file mode 100644 index 00000000..c6b9c915 --- /dev/null +++ b/src/widgets/Slider.qml @@ -0,0 +1,31 @@ +import QtQuick 1.0 +import "../../../components" as Components +import "../plugin" + +// jens: ContainsMouse breaks drag functionality + +Components.Slider{ + id:slider + minimumWidth:200 + + // Align with button + property int buttonHeight: buttonitem.sizeFromContents(100, 15).height + QStyleItem { id:buttonitem; elementType:"button" } + height: buttonHeight + + groove: QStyleBackground { + anchors.fill:parent + style: QStyleItem{ + elementType:"slider" + sunken: pressed + maximum:slider.maximumValue + minimum:slider.minimumValue + value:slider.value + horizontal:slider.orientation == Qt.Horizontal + enabled:slider.enabled + } + } + + handle: null + valueIndicator: null +} |