scale dependning on font size
This commit is contained in:
parent
3f96f1effa
commit
3225fb65fa
|
@ -4,8 +4,8 @@ import QtQuick.Window 2.2
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
width: Screen.width * 0.2
|
width: body.font.pixelSize * 3 * 9
|
||||||
height: Screen.height * 0.1
|
height: body.font.pixelSize * 9
|
||||||
|
|
||||||
signal dismissed()
|
signal dismissed()
|
||||||
|
|
||||||
|
@ -34,6 +34,8 @@ Rectangle {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.debug(width + "x" + height)
|
||||||
|
console.debug(body.maximumLineCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
NumberAnimation{
|
NumberAnimation{
|
||||||
|
@ -82,7 +84,7 @@ Rectangle {
|
||||||
anchors.left: image.right
|
anchors.left: image.right
|
||||||
anchors.leftMargin: 5
|
anchors.leftMargin: 5
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
maximumLineCount: root.height / font.pointSize
|
maximumLineCount: root.height / font.pixelSize - 3
|
||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue