Changeset View
Changeset View
Standalone View
Standalone View
applet/contents/ui/DetailsText.qml
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 65 | PlasmaComponents.Label { | |||
---|---|---|---|---|---|
68 | anchors { | 68 | anchors { | ||
69 | left: parent.left | 69 | left: parent.left | ||
70 | leftMargin: repeater.longestString - paintedWidth + Math.round(units.gridUnit / 2) | 70 | leftMargin: repeater.longestString - paintedWidth + Math.round(units.gridUnit / 2) | ||
71 | } | 71 | } | ||
72 | height: paintedHeight | 72 | height: paintedHeight | ||
73 | font.pointSize: theme.smallestFont.pointSize | 73 | font.pointSize: theme.smallestFont.pointSize | ||
74 | horizontalAlignment: Text.AlignRight | 74 | horizontalAlignment: Text.AlignRight | ||
75 | text: details[index*2] + ": " | 75 | text: details[index*2] + ": " | ||
76 | opacity: 0.6 | ||||
76 | 77 | | |||
77 | Component.onCompleted: { | 78 | Component.onCompleted: { | ||
78 | if (paintedWidth > repeater.longestString) { | 79 | if (paintedWidth > repeater.longestString) { | ||
79 | repeater.longestString = paintedWidth | 80 | repeater.longestString = paintedWidth | ||
80 | } | 81 | } | ||
81 | } | 82 | } | ||
82 | } | 83 | } | ||
83 | 84 | | |||
Show All 23 Lines |