Ubuntu Pastebin

Paste from liuxg at Tue, 19 May 2015 08:31:19 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
        Text {
            id: txt
            anchors.top: parent.top
            anchors.topMargin: units.gu(1)
            width: Math.min(3000, txt.contentWidth)
            wrapMode: Text.WordWrap
            text: content
            horizontalAlignment: delegate.rightAligned ? Text.AlignRight : Text.AlignLeft
            font.pixelSize: units.gu(3)

            TextBalloon {
                anchors.fill: parent
                z: -1
                rightAligned: delegate.rightAligned
                anchors.margins: -units.gu(1.5)
            }
        }
Download as text