summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmlvisual/qdeclarativetextedit/justify.qml
blob: 4aeb58c3521441145105539ea5347a8480a184d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import QtQuick 1.0
import "../shared" 1.0

Rectangle {
    width: 450
    height: 250

    TestTextEdit {
        anchors.fill: parent
        anchors { leftMargin: 10; rightMargin: 10; topMargin:10; bottomMargin: 10 }
        wrapMode: Text.Wrap
        horizontalAlignment: Text.AlignJustify

        text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin a aliquet massa. Integer id velit a nibh imperdiet sagittis. Cras fringilla enim non nulla porta bibendum. Integer risus urna, hendrerit non interdum ut, dapibus id velit. Nullam fermentum viverra pellentesque. In molestie scelerisque lorem molestie ultrices. Curabitur dolor arcu, tristique in sodales in, varius sed diam. Quisque magna velit, tincidunt sed ullamcorper sit amet, ornare adipiscing ligula. In hac habitasse platea dictumst. Ut tincidunt urna vel mauris fermentum ornare quis a ligula. Suspendisse cursus volutpat sapien eget cursus."

        Rectangle {
            anchors.fill:  parent
            color: "transparent"
            border.color:  "red"
        }
    }
}