aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickrangeslider.cpp
Commit message (Collapse)AuthorAgeFilesLines
* RangeSlider: forward focus to the handlesJ-P Nurmi2016-02-241-0/+18
| | | | | | | | | | The active focus ends up to RangeSlider when using forceActiveFocus() or QML KeyNavigation. We must forward the focus to one of the handles, because RangeSlider handles key events for the focused handle. If neither handle has active focus, RangeSlider doesn't do anything. Change-Id: I61a53d0c7203fad64306b54c1f96093bd9312416 Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* RangeSlider: choose the nearest handleJ-P Nurmi2016-02-091-0/+25
| | | | | | | | | The handles were hard to touch. This change makes it choose the nearest handle, so that the interaction becomes similar to what Slider has. Change-Id: Ie94eeed6a8466f44e8eee0ce0ba0a45cfb3f6924 Task-number: QTBUG-50972 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Sliders: fix snapping on releaseJ-P Nurmi2016-02-081-1/+5
| | | | | | | | | If the value changes when snapped on release, the position is updated accordingly. However, if the value doesn't change, the position must be updated manually or the handle doesn't snap as it should. Change-Id: I3648e08c2f897d73c84c6d91510795e4aede41d7 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* RangeSlider: fix stepSize handling when snapping is enabledJ-P Nurmi2016-02-081-3/+8
| | | | | | | | Same as the recent fix for Slider. The step size needs to be normalized when added to or subtracted from the position. Change-Id: I490d105f88db361fb0e1888017e1717e9d79e4c8 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Docs: add notes about the Qt.labs moduleJ-P Nurmi2016-01-191-0/+2
| | | | | Change-Id: I65c37f661689bf30e7a9119bb877dce68eeb634c Reviewed-by: Topi Reiniƶ <topi.reinio@theqtcompany.com>
* Fix build on ARM with -qreal floatJ-P Nurmi2015-12-181-2/+2
| | | | | | Change-Id: Id80ecea7bd79265d731e5c5e37c0acf0e344c8ab Task-number: QTBUG-50048 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Added QQuickControl::accessibleRole() and etcLiang Qi2015-10-291-1/+8
| | | | | | | | * m_accessibleRole was removed * also applied to QQuickLabel, QQuickTextArea and QQuickTextField Change-Id: I4b487f32cccfba0e16b3dba7e39882e8cd7ea616 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* QQuickControl: dynamically create a11y attached objectLiang Qi2015-10-211-1/+1
| | | | | | | Using QAccessible::ActivationObserver approach. Change-Id: Ib99c1f9b7b0c37a3e8a4747db265c9df77acc1f8 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
* Docs: disambiguate group sectionsJ-P Nurmi2015-10-201-1/+1
| | | | | | Change-Id: Ia6e8a53b8b5261e1efd80dcd3351cd216d34edf4 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
* Docs: Input groupJ-P Nurmi2015-10-191-2/+2
| | | | | Change-Id: Iba6e3503d20e1f141c5dd81a2eeab6176e809914 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* Doc: RangeSlider: Move methods out of property groupsTopi Reinio2015-10-191-30/+33
| | | | | | | | | QDoc doesn't support documenting methods inside a property group. Move them to the top level and use 'see also' to link between the groups and methods. Change-Id: I09fcdecb38ff63986f0d2a8c5d4151c47f249f1c Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add RangeSliderMitch Curtis2015-10-141-0/+885
This is basically Slider, except with two handles. It's used to specify a range of values. Task-number: QTBUG-48667 Change-Id: Ib4f9afe5dc8343e307610943d338a2b574a01e4d Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>