diff options
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 |
