Changeset View
Changeset View
Standalone View
Standalone View
src/declarativeimports/plasmaextracomponents/qml/Paragraph.qml
Show All 26 Lines | |||||
27 | * plasma theme. Use this components for paragraphs of text in your | 27 | * plasma theme. Use this components for paragraphs of text in your | ||
28 | * application. Use this component for blocks of text in your app. | 28 | * application. Use this component for blocks of text in your app. | ||
29 | * | 29 | * | ||
30 | * Example usage: | 30 | * Example usage: | ||
31 | * @code | 31 | * @code | ||
32 | * import org.kde.plasma.extras 2.0 as PlasmaExtras | 32 | * import org.kde.plasma.extras 2.0 as PlasmaExtras | ||
33 | * [...] | 33 | * [...] | ||
34 | * Column { | 34 | * Column { | ||
35 | * PlasmaExtras.Title { text: "Fruit sweetness on the rise" } | 35 | * PlasmaExtras.Heading { text: "Fruit sweetness on the rise"; level: 1 } | ||
36 | * PlasmaExtras.Heading { text: "Apples in the sunlight"; level: 2 } | 36 | * PlasmaExtras.Heading { text: "Apples in the sunlight"; level: 2 } | ||
37 | * PlasmaExtras.Paragraph { text: "Long text about fruit and apples [...]" } | 37 | * PlasmaExtras.Paragraph { text: "Long text about fruit and apples [...]" } | ||
38 | * [...] | 38 | * [...] | ||
39 | * } | 39 | * } | ||
40 | * @endcode | 40 | * @endcode | ||
41 | * | 41 | * | ||
42 | * See PlasmaComponents Label and primitive QML Text element API for additional | 42 | * See PlasmaComponents Label and primitive QML Text element API for additional | ||
43 | * properties, methods and signals. | 43 | * properties, methods and signals. | ||
44 | * @deprecated use QtQuickControls 2.0 Label instead | 44 | * @deprecated use QtQuickControls 2.0 Label instead | ||
45 | */ | 45 | */ | ||
46 | Label { | 46 | Label { | ||
47 | id: paragraph | 47 | id: paragraph | ||
48 | width: parent.width | 48 | width: parent.width | ||
49 | horizontalAlignment: Text.AlignJustify | 49 | horizontalAlignment: Text.AlignJustify | ||
50 | wrapMode: Text.WordWrap | 50 | wrapMode: Text.WordWrap | ||
51 | } | 51 | } |