Fix qml layout.

This commit is contained in:
Patrick von Reth 2015-09-11 21:36:01 +02:00
parent 9cbf5f7733
commit e3a479c4f6

View File

@ -73,8 +73,10 @@ Rectangle {
anchors.margins: snoreMargin anchors.margins: snoreMargin
anchors.topMargin: snoreMargin / 2 anchors.topMargin: snoreMargin / 2
anchors.left: image.right anchors.left: image.right
anchors.right: closeButton.left
textFormat: Text.RichText textFormat: Text.RichText
font.family: snoreFont font.family: snoreFont
clip: true
} }
Text { Text {
@ -88,7 +90,7 @@ Rectangle {
anchors.left: image.right anchors.left: image.right
anchors.margins: snoreMargin anchors.margins: snoreMargin
anchors.topMargin: snoreMargin / 2 anchors.topMargin: snoreMargin / 2
wrapMode: Text.WordWrap wrapMode: Text.WrapAtWordBoundaryOrAnywhere
maximumLineCount: height / font.pixelSize - 1 maximumLineCount: height / font.pixelSize - 1
onLinkActivated: Qt.openUrlExternally(link) onLinkActivated: Qt.openUrlExternally(link)
textFormat: Text.RichText textFormat: Text.RichText