summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/controls/Button.qml5
-rw-r--r--src/controls/Private/BasicButton.qml5
2 files changed, 5 insertions, 5 deletions
diff --git a/src/controls/Button.qml b/src/controls/Button.qml
index 028607722..f724e5af5 100644
--- a/src/controls/Button.qml
+++ b/src/controls/Button.qml
@@ -78,10 +78,7 @@ BasicButton {
*/
property Menu menu: null
- /*! \qmlproperty bool BasicButton::pressed
-
- This property holds whether the button is being pressed. */
- readonly property bool pressed: __behavior.effectivePressed || menu && menu.__popupVisible
+ __effectivePressed: __behavior.effectivePressed || menu && menu.__popupVisible
activeFocusOnTab: true
diff --git a/src/controls/Private/BasicButton.qml b/src/controls/Private/BasicButton.qml
index f07aea863..e48b1cda6 100644
--- a/src/controls/Private/BasicButton.qml
+++ b/src/controls/Private/BasicButton.qml
@@ -59,7 +59,7 @@ Control {
/*! \qmlproperty bool BasicButton::pressed
This property holds whether the button is being pressed. */
- readonly property alias pressed: behavior.effectivePressed
+ readonly property alias pressed: button.__effectivePressed
/*! \qmlproperty bool BasicButton::hovered
@@ -202,6 +202,9 @@ Control {
/*! \internal */
property var __behavior: behavior
+ /*! \internal */
+ property bool __effectivePressed: behavior.effectivePressed
+
SystemPalette { id: syspal }
states: [