~zsombi/ubuntu-ui-toolkit/45-selected-option-rebinds

« back to all changes in this revision

Viewing changes to modules/Ubuntu/Components/Slider.qml

  • Committer: Zsombor Egri
  • Date: 2014-11-20 05:34:10 UTC
  • mfrom: (1223.1.63 40-visualize-options)
  • Revision ID: zsombor.egri@canonical.com-20141120053410-dwckc43mf01atl1n
prereq sync

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    id: slider
50
50
 
51
51
    /*!
52
 
       \preliminary
53
52
       The minimum value from the continuous range of values. If this value is
54
53
       greater than maximumValue, the component will be in an inconsistent
55
54
       state.
57
56
    property real minimumValue: 0.0
58
57
 
59
58
    /*!
60
 
       \preliminary
61
59
       The maximum value from the continuous range of values. If this value is
62
60
       lesser than minimumValue, the component will be in an inconsistent state.
63
61
    */
66
64
    // FIXME(loicm) Add Support for the stepSize property.
67
65
 
68
66
    // /*!
69
 
    //    \preliminary
70
67
    //    The distance between two selectable values in the range defined by
71
68
    //    [minimumValue, maximumValue].
72
69
    // */
73
70
    // property real stepSize: 1.0
74
71
 
75
72
    /*!
76
 
       \preliminary
77
73
       The current value of the slider. This property is not changed while the
78
74
       thumb is dragged unless the live property is set to true.
79
75
    */
80
76
    property real value: 0.0
81
77
 
82
78
    /*!
83
 
       \preliminary
84
79
       Defines whether the value is updated while the thumb is dragged or just
85
80
       when the thumb is released.
86
81
    */
89
84
    /*!
90
85
       \qmlproperty bool pressed
91
86
 
92
 
       \preliminary
93
87
       Whether the Slider is currently being pressed.
94
88
    */
95
89
    property alias pressed: mouseArea.pressed
96
90
 
97
91
    /*!
98
 
       \preliminary
99
92
       The signal is emitted when there is a click on the slider. The onThumb parameter provides information if the click, was inside of the thumb element.
100
93
    */
101
94
    signal touched(bool onThumb)
102
95
 
103
96
 
104
97
    /*!
105
 
      \preliminary
106
98
      This function is used by the value indicator to show the current value.
107
99
      Reimplement this function if you want to show different information. By
108
100
      default, the value v is rounded to the nearest interger value.