Changeset View
Changeset View
Standalone View
Standalone View
src/controls/Heading.qml
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 50 | QQC2.Label { | |||
---|---|---|---|---|---|
60 | /** | 60 | /** | ||
61 | * step: int | 61 | * step: int | ||
62 | * adjust the point size in between a level and another. | 62 | * adjust the point size in between a level and another. | ||
63 | * DEPRECATED | 63 | * DEPRECATED | ||
64 | */ | 64 | */ | ||
65 | property int step: 0 | 65 | property int step: 0 | ||
66 | 66 | | |||
67 | font.pointSize: headerPointSize(level) | 67 | font.pointSize: headerPointSize(level) | ||
68 | wrapMode: Text.WordWrap | | |||
69 | 68 | | |||
70 | function headerPointSize(l) { | 69 | function headerPointSize(l) { | ||
71 | var n = Theme.defaultFont.pointSize; | 70 | var n = Theme.defaultFont.pointSize; | ||
72 | var s; | 71 | var s; | ||
73 | switch (l) { | 72 | switch (l) { | ||
74 | case 1: | 73 | case 1: | ||
75 | return Math.round(n * 1.80) + step; | 74 | return Math.round(n * 1.80) + step; | ||
76 | case 2: | 75 | case 2: | ||
Show All 10 Lines |