diff options
Diffstat (limited to 'src/styles/Base/RadioButtonStyle.qml')
-rw-r--r-- | src/styles/Base/RadioButtonStyle.qml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/styles/Base/RadioButtonStyle.qml b/src/styles/Base/RadioButtonStyle.qml index 49d15e3d..614a9537 100644 --- a/src/styles/Base/RadioButtonStyle.qml +++ b/src/styles/Base/RadioButtonStyle.qml @@ -83,7 +83,13 @@ PaddedStyle { /*! The \l RadioButton attached to this style. */ readonly property RadioButton control: __control - /*! The text label. */ + /*! This defines the text label. In addition to the public + properties of \c control, the following state properties are available: + + \table + \li readonly property bool styleData.hovered - The control is being hovered. + \endtable + */ property Component label: Text { text: control.text renderType: Text.NativeRendering @@ -97,7 +103,13 @@ PaddedStyle { /*! The spacing between indicator and label. */ property int spacing: 4 - /*! The indicator button. */ + /*! This defines the indicator button. In addition to the public + properties of \c control, the following state properties are available: + + \table + \li readonly property bool styleData.hovered - The control is being hovered. + \endtable + */ property Component indicator: Rectangle { width: 17 height: 17 @@ -133,12 +145,14 @@ PaddedStyle { id: indicatorLoader sourceComponent: indicator anchors.verticalCenter: parent.verticalCenter + property QtObject styleData: QtObject { readonly property bool hovered: control.__containsMouse } } Loader { id: labelLoader sourceComponent: label anchors.top: parent.top anchors.bottom: parent.bottom + property QtObject styleData: QtObject { readonly property bool hovered: control.__containsMouse } } } } |