Browse Source

ToolStripHoverButton.qml: hover disabled on mobile:

For some reason in mobile the button would keep as hovered
even if it is not pressed, so it was weird. This way it
makes more sense for mobile, the UI is consistent with
what is happening
QGC4.4
davidsastresas 1 year ago committed by Julian Oes
parent
commit
01137325aa
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 2
      src/QmlControls/ToolStripHoverButton.qml

2
src/QmlControls/ToolStripHoverButton.qml

@ -18,7 +18,7 @@ Button { @@ -18,7 +18,7 @@ Button {
id: control
width: contentLayoutItem.contentWidth + (contentMargins * 2)
height: width
hoverEnabled: true
hoverEnabled: !ScreenTools.isMobile
enabled: toolStripAction.enabled
visible: toolStripAction.visible
imageSource: toolStripAction.showAlternateIcon ? modelData.alternateIconSource : modelData.iconSource

Loading…
Cancel
Save