diff options
| author | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2013-06-05 15:46:48 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-06-06 12:00:11 +0200 |
| commit | e6ea417c15aa760e8b1a88e5db362f9642d1589e (patch) | |
| tree | a09cb67927a1f882aca310f00662a9109ff1f6c0 /src | |
| parent | 05e492cf7ab30286087f579cefd9829da569f48f (diff) | |
Improve the Styles page and add missing SliderStyle property
- I noticed we incorrectly exposed sliderPosition.
- This adds some more custom style examples for the gallery and
makes the second column actually different from the first.
Change-Id: I73f0d613f51f6e75aaf734fd4e4c9fdb890e3e42
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/styles/Base/SliderStyle.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/styles/Base/SliderStyle.qml b/src/styles/Base/SliderStyle.qml index e21936a2a..a6df15c0e 100644 --- a/src/styles/Base/SliderStyle.qml +++ b/src/styles/Base/SliderStyle.qml @@ -122,7 +122,8 @@ Style { } /*! This property holds the background groove of the slider. - You can access the handle position through the \c handlePosition property. + + You can access the handle position through the \c styleData.handlePosition property. */ property Component groove: Item { anchors.verticalCenter: parent.verticalCenter @@ -164,7 +165,9 @@ Style { Loader { id: grooveLoader - property int handlePosition: handleLoader.x + handleLoader.width/2 + property QtObject styleData: QtObject { + readonly property int handlePosition: handleLoader.x + handleLoader.width/2 + } x: padding.left sourceComponent: groove width: (horizontal ? parent.width : parent.height) - padding.left - padding.right |
