Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/components/UserDelegate.qml
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Line(s) | 176 | PlasmaComponents.Label { | |||
---|---|---|---|---|---|
178 | font.pointSize: theme.defaultFont.pointSize + 2 | 178 | font.pointSize: theme.defaultFont.pointSize + 2 | ||
179 | anchors { | 179 | anchors { | ||
180 | bottom: parent.bottom | 180 | bottom: parent.bottom | ||
181 | horizontalCenter: parent.horizontalCenter | 181 | horizontalCenter: parent.horizontalCenter | ||
182 | } | 182 | } | ||
183 | height: implicitHeight // work around stupid bug in Plasma Components that sets the height | 183 | height: implicitHeight // work around stupid bug in Plasma Components that sets the height | ||
184 | width: constrainText ? parent.width : implicitWidth | 184 | width: constrainText ? parent.width : implicitWidth | ||
185 | text: wrapper.name | 185 | text: wrapper.name | ||
186 | style: softwareRendering ? Text.Outline : undefined | 186 | style: softwareRendering ? Text.Outline : Text.Normal | ||
187 | styleColor: softwareRendering ? ColorScope.backgroundColor : undefined | 187 | styleColor: softwareRendering ? ColorScope.backgroundColor : "transparent" //no outline, doesn't matter | ||
188 | elide: Text.ElideRight | 188 | elide: Text.ElideRight | ||
189 | horizontalAlignment: Text.AlignHCenter | 189 | horizontalAlignment: Text.AlignHCenter | ||
190 | //make an indication that this has active focus, this only happens when reached with keyboard navigation | 190 | //make an indication that this has active focus, this only happens when reached with keyboard navigation | ||
191 | font.underline: wrapper.activeFocus | 191 | font.underline: wrapper.activeFocus | ||
192 | } | 192 | } | ||
193 | 193 | | |||
194 | MouseArea { | 194 | MouseArea { | ||
195 | anchors.fill: parent | 195 | anchors.fill: parent | ||
Show All 9 Lines |