examples/declarative/ui-components/progressbar/content/ProgressBar.qml
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    64         property int widthDest: ((progressbar.width * (value - minimum)) / (maximum - minimum) - 6)
    64         property int widthDest: ((progressbar.width * (value - minimum)) / (maximum - minimum) - 6)
    65 
    65 
    66         width: highlight.widthDest
    66         width: highlight.widthDest
    67         Behavior on width { SmoothedAnimation { velocity: 1200 } }
    67         Behavior on width { SmoothedAnimation { velocity: 1200 } }
    68 
    68 
    69         anchors { left: parent.left; top: parent.top; bottom: parent.bottom; leftMargin: 3; topMargin: 3; bottomMargin: 3 }
    69         anchors { left: parent.left; top: parent.top; bottom: parent.bottom; margins: 3 }
    70         radius: 1
    70         radius: 1
    71         gradient: Gradient {
    71         gradient: Gradient {
    72             GradientStop { id: gradient1; position: 0.0 }
    72             GradientStop { id: gradient1; position: 0.0 }
    73             GradientStop { id: gradient2; position: 1.0 }
    73             GradientStop { id: gradient2; position: 1.0 }
    74         }
    74         }