Index: sources/gui/qml/components/StepBullet.qml =================================================================== diff -u -rfa1b7c7d5ca98b991168bacc0bab1e9614ed39b6 -r526137b088b43e51868cb241ce70b3cf52febae8 --- sources/gui/qml/components/StepBullet.qml (.../StepBullet.qml) (revision fa1b7c7d5ca98b991168bacc0bab1e9614ed39b6) +++ sources/gui/qml/components/StepBullet.qml (.../StepBullet.qml) (revision 526137b088b43e51868cb241ce70b3cf52febae8) @@ -36,16 +36,17 @@ property color colorComplete : Colors.borderButton property color colorCurrent : currentComplete ? colorComplete : Colors.transparent property color colorInComplete : Colors.borderDisableButton - property int fontSizeCurrent : 18 - property int fontSizeNormal : 14 + property int fontSizeCurrent : Fonts.fontPixelStepCurrent + property int fontSizeNormal : Fonts.fontPixelStepNormal + QtObject { id: _private readonly property real diameter : 15 readonly property string stateNameVertical : "vertical" // must not have translation readonly property string stateNameHorizontal : "horizontal" // must not have translation } - height : _circle.height + (_text.visible ? _text.height : 0) + height : _circle.height + (_text.visible ? _textHightRef.height : 0) width : _private.diameter state : _root.vertical ? _private.stateNameVertical : _private.stateNameHorizontal @@ -63,6 +64,17 @@ border.width: 2 } + // this text is created only for the maximum(current) font info(height) + Text { id: _textHightRef + visible: false + text : _text.text + font { + pixelSize: _root.fontSizeCurrent + bold : _root.current + italic : _root.current + } + } + Text { id: _text visible: ! _root.hideLabels anchors.top : _circle.bottom @@ -75,7 +87,6 @@ pixelSize: _root.current ? _root.fontSizeCurrent : _root.fontSizeNormal bold : _root.current italic : _root.current - } }