diff options
author | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-21 13:21:48 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@theqtcompany.com> | 2016-03-21 20:00:39 +0000 |
commit | d8d029ccc641dc4151b6fa998ebd415930835094 (patch) | |
tree | 71bdc5657bcfee6161e9cd2569626f44a9f4da2d /src/imports/controls/Slider.qml | |
parent | 09e0e044c379a78f539400e7a4a1bbb109148639 (diff) |
Remove Slider::track in favor of Control::background
In the series of minimalizing the delegate APIs.
Change-Id: I664f4227ff55876be2594c8855dacc7c92eddc94
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/Slider.qml')
-rw-r--r-- | src/imports/controls/Slider.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/imports/controls/Slider.qml b/src/imports/controls/Slider.qml index 95cfc54e..53ebd04c 100644 --- a/src/imports/controls/Slider.qml +++ b/src/imports/controls/Slider.qml @@ -41,10 +41,10 @@ T.Slider { id: control implicitWidth: Math.max(background ? background.implicitWidth : 0, - Math.max(track ? track.implicitWidth : 0, + Math.max(background ? background.implicitWidth : 0, handle ? handle.implicitWidth : 0) + leftPadding + rightPadding) implicitHeight: Math.max(background ? background.implicitHeight : 0, - Math.max(track ? track.implicitHeight : 0, + Math.max(background ? background.implicitHeight : 0, handle ? handle.implicitHeight : 0) + topPadding + bottomPadding) padding: 6 @@ -63,8 +63,8 @@ T.Slider { } //! [handle] - //! [track] - track: Rectangle { + //! [background] + background: Rectangle { x: control.leftPadding + (horizontal ? 0 : (control.availableWidth - width) / 2) y: control.topPadding + (horizontal ? (control.availableHeight - height) / 2 : 0) implicitWidth: horizontal ? 200 : 6 @@ -78,5 +78,5 @@ T.Slider { readonly property bool horizontal: control.orientation === Qt.Horizontal } - //! [track] + //! [background] } |