Meego Wiki
Views

VerticalSlider API Snapshot

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
m (changed title)
(removed private properties)
 
Line 17: Line 17:
;''alias'' markerSize  
;''alias'' markerSize  
:Sets the width and height of the position marker. Default value is the size of the image used for the marker.
:Sets the width and height of the position marker. Default value is the size of the image used for the marker.
-
 
-
=Private Properties=
 
-
-
 
   
   
=Signals=
=Signals=

Latest revision as of 12:25, 28 April 2011

Contents

Description

Displays a slider which can be used as input element. For example a volume control. The slider also has a progress bar.

API properties

int min
Minimum value of the slider
int max
Maximum value of the slider
int value
Current value ot the slider
real percentage
Used to calculate the width of the progress bar
bool textOverlayVertical
Used to check if the textoverlay needs to be laid out vertically or horizontally
bool textOverlayVisible
Makes the text overlay visible or invisible.
alias markerSize
Sets the width and height of the position marker. Default value is the size of the image used for the marker.

Signals

sliderChanged
Is emitted when the value of the sliders changed
Parameter:
  • int value, the new value

Functions

-

Example

VerticalSlider {
    id: mySlider

    min: 0
    max: 100
    value: 50
}
Personal tools