blob: 18e05d95ff60b24f4f3b77a18f001911e9bb3aef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import QtQuick 1.0
import "custom" 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
}
|