Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/components/UserDelegate.qml
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | 160 | PlasmaComponents.Label { | |||
---|---|---|---|---|---|
163 | anchors { | 163 | anchors { | ||
164 | bottom: parent.bottom | 164 | bottom: parent.bottom | ||
165 | horizontalCenter: parent.horizontalCenter | 165 | horizontalCenter: parent.horizontalCenter | ||
166 | } | 166 | } | ||
167 | height: implicitHeight // work around stupid bug in Plasma Components that sets the height | 167 | height: implicitHeight // work around stupid bug in Plasma Components that sets the height | ||
168 | width: constrainText ? parent.width : implicitWidth | 168 | width: constrainText ? parent.width : implicitWidth | ||
169 | text: wrapper.name | 169 | text: wrapper.name | ||
170 | style: softwareRendering ? Text.Outline : Text.Normal | 170 | style: softwareRendering ? Text.Outline : Text.Normal | ||
171 | styleColor: softwareRendering ? ColorScope.backgroundColor : "transparent" //no outline, doesn't matter | 171 | styleColor: softwareRendering ? PlasmaCore.ColorScope.backgroundColor : "transparent" //no outline, doesn't matter | ||
ngraham: Ditto | |||||
172 | elide: Text.ElideRight | 172 | elide: Text.ElideRight | ||
173 | horizontalAlignment: Text.AlignHCenter | 173 | horizontalAlignment: Text.AlignHCenter | ||
174 | //make an indication that this has active focus, this only happens when reached with keyboard navigation | 174 | //make an indication that this has active focus, this only happens when reached with keyboard navigation | ||
175 | font.underline: wrapper.activeFocus | 175 | font.underline: wrapper.activeFocus | ||
176 | } | 176 | } | ||
177 | 177 | | |||
178 | MouseArea { | 178 | MouseArea { | ||
179 | anchors.fill: parent | 179 | anchors.fill: parent | ||
Show All 9 Lines |
Ditto