diff options
Diffstat (limited to 'src/private/BasicButton.qml')
| -rw-r--r-- | src/private/BasicButton.qml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/private/BasicButton.qml b/src/private/BasicButton.qml index a967f73f0..b5e9ab8f4 100644 --- a/src/private/BasicButton.qml +++ b/src/private/BasicButton.qml @@ -59,8 +59,14 @@ Control { /*! \qmlproperty bool BasicButton::pressed - This property holds whether the button is pressed. */ - readonly property bool pressed: behavior.effectivePressed + This property holds whether the button is being pressed. */ + readonly property alias pressed: behavior.effectivePressed + + /*! \qmlproperty bool BasicButton::hovered + + This property indicates whether the control is being hovered. + */ + readonly property alias hovered: behavior.containsMouse /*! This property holds whether the button is checkable. @@ -123,8 +129,6 @@ Control { /*! \internal */ property string __position: "only" /*! \internal */ - property alias __containsMouse: behavior.containsMouse - /*! \internal */ readonly property bool __iconOverriden: button.action && (button.action.iconSource !== button.iconSource || button.action.iconName !== button.iconName) /*! \internal */ property Action __action: action || ownAction |
