Browse Source

ToolStrip.qml: expose fontSize for ToolStripHoverButton

QGC4.4
davidsastresas 11 months ago committed by Julian Oes
parent
commit
607879a512
No known key found for this signature in database
GPG Key ID: F0ED380FEA56DE41
  1. 3
      src/QmlControls/ToolStrip.qml

3
src/QmlControls/ToolStrip.qml

@ -25,6 +25,7 @@ Rectangle {
property alias model: repeater.model property alias model: repeater.model
property real maxHeight ///< Maximum height for control, determines whether text is hidden to make control shorter property real maxHeight ///< Maximum height for control, determines whether text is hidden to make control shorter
property alias title: titleLabel.text property alias title: titleLabel.text
property var fontSize: ScreenTools.smallFontPointSize
property var _dropPanel: dropPanel property var _dropPanel: dropPanel
@ -81,7 +82,7 @@ Rectangle {
anchors.right: toolStripColumn.right anchors.right: toolStripColumn.right
height: width height: width
radius: ScreenTools.defaultFontPixelWidth / 2 radius: ScreenTools.defaultFontPixelWidth / 2
fontPointSize: ScreenTools.smallFontPointSize fontPointSize: _root.fontSize
toolStripAction: modelData toolStripAction: modelData
dropPanel: _dropPanel dropPanel: _dropPanel
onDropped: _root.dropped(index) onDropped: _root.dropped(index)

Loading…
Cancel
Save