Add handleSize property to control the handle size of the plasma Slider component

Signed-off-by: Daker Fernandes Pinheiro <dakerfp@gmail.com>
This commit is contained in:
Daker Fernandes Pinheiro 2011-07-15 20:45:08 -03:00
parent 8a3162b431
commit 93f4b0efb5

View File

@ -38,6 +38,7 @@ Item {
property bool animated: false
property alias inverted: range.inverted
property bool updateValueWhileDragging: true
property real handleSize: 22
// Convinience API
property bool _isVertical: orientation == Qt.Vertical
@ -161,8 +162,8 @@ Item {
anchors {
verticalCenter: groove.verticalCenter
}
width: height
height: parent.height
width: handleSize
height: handleSize
svg: PlasmaCore.Svg { imagePath: "widgets/slider" }
elementId: "horizontal-slider-handle"