File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,15 @@ Column {
5656
5757 anchors .centerIn : parent
5858
59+ readonly property bool shouldExpand: button .activeFocus || button .state === MZTheme .theme .uiState .stateHovered || button .state === MZTheme .theme .uiState .statePressed || delegate .currentState === MZStepProgressBarDelegate .State .Active
60+
5961 z: parent .z - 1
6062 radius: implicitWidth / 2
6163 color: MZTheme .colors .stepProgressBarHighlight
64+ visible: implicitWidth > 0 && implicitHeight > 0
6265
63- implicitHeight: button . activeFocus || button . state === MZTheme . theme . uiState . stateHovered || button . state === MZTheme . theme . uiState . statePressed || delegate . currentState === MZStepProgressBarDelegate . State . Active ? parent .implicitHeight + 8 : 0
64- implicitWidth: button . activeFocus || button . state === MZTheme . theme . uiState . stateHovered || button . state === MZTheme . theme . uiState . statePressed || delegate . currentState === MZStepProgressBarDelegate . State . Active ? parent .implicitWidth + 8 : 0
66+ implicitHeight: shouldExpand ? parent .implicitHeight + 8 : 0
67+ implicitWidth: shouldExpand ? parent .implicitWidth + 8 : 0
6568
6669 Behavior on implicitHeight {
6770 enabled: button .state !== MZTheme .theme .uiState .stateHovered && button .state !== MZTheme .theme .uiState .statePressed
You can’t perform that action at this time.
0 commit comments