Skip to content

Commit

Permalink
ToolStrip.qml: expose fontSize for ToolStripHoverButton
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidsastresas authored and julianoes committed Apr 11, 2024
1 parent c2009ef commit 607879a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QmlControls/ToolStrip.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Rectangle {
property alias model: repeater.model
property real maxHeight ///< Maximum height for control, determines whether text is hidden to make control shorter
property alias title: titleLabel.text
property var fontSize: ScreenTools.smallFontPointSize

property var _dropPanel: dropPanel

Expand Down Expand Up @@ -81,7 +82,7 @@ Rectangle {
anchors.right: toolStripColumn.right
height: width
radius: ScreenTools.defaultFontPixelWidth / 2
fontPointSize: ScreenTools.smallFontPointSize
fontPointSize: _root.fontSize
toolStripAction: modelData
dropPanel: _dropPanel
onDropped: _root.dropped(index)
Expand Down

0 comments on commit 607879a

Please sign in to comment.