ensure the text fits properly and better control over text size
This commit is contained in:
parent
b6e29352d9
commit
e05beb3857
2 changed files with 3 additions and 2 deletions
|
@ -132,13 +132,14 @@ Item {
|
|||
id: lyrics
|
||||
text: root.text
|
||||
/* text: root.width / textSize */
|
||||
font.pixelSize: root.width / root.textSize * 3
|
||||
font.pixelSize: root.width / 1000 * root.textSize
|
||||
/* minimumPointSize: 5 */
|
||||
fontSizeMode: Text.Fit
|
||||
font.family: chosenFont
|
||||
horizontalAlignment: hTextAlignment
|
||||
verticalAlignment: vTextAlignment
|
||||
style: Text.Raised
|
||||
wrapMode: Text.WordWrap
|
||||
anchors.fill: parent
|
||||
anchors.topMargin: 10
|
||||
anchors.bottomMargin: 10
|
||||
|
|
|
@ -40,7 +40,7 @@ Item {
|
|||
id: fontSizeBox
|
||||
editable: true
|
||||
from: 5
|
||||
to: 72
|
||||
to: 150
|
||||
hoverEnabled: true
|
||||
onValueModified: updateFontSize(value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue