diff --git a/lookandfeel/contents/components/UserDelegate.qml b/lookandfeel/contents/components/UserDelegate.qml --- a/lookandfeel/contents/components/UserDelegate.qml +++ b/lookandfeel/contents/components/UserDelegate.qml @@ -32,6 +32,7 @@ property string userName property string avatarPath property string iconSource + property bool constrainText: true signal clicked() property real faceSize: Math.min(width, height - usernameDelegate.height - units.largeSpacing) @@ -132,10 +133,10 @@ id: usernameDelegate anchors { bottom: parent.bottom - left: parent.left - right: parent.right + horizontalCenter: parent.horizontalCenter } height: implicitHeight // work around stupid bug in Plasma Components that sets the height + width: constrainText ? parent.width : implicitWidth text: wrapper.name elide: Text.ElideRight horizontalAlignment: Text.AlignHCenter diff --git a/lookandfeel/contents/components/UserList.qml b/lookandfeel/contents/components/UserList.qml --- a/lookandfeel/contents/components/UserList.qml +++ b/lookandfeel/contents/components/UserList.qml @@ -76,6 +76,9 @@ width: userItemWidth height: userItemHeight + //if we only have one delegate, we don't need to clip the text as it won't be overlapping with anything + constrainText: ListView.view.count > 1 + isCurrent: ListView.isCurrentItem onClicked: { diff --git a/lookandfeel/contents/logout/Logout.qml b/lookandfeel/contents/logout/Logout.qml --- a/lookandfeel/contents/logout/Logout.qml +++ b/lookandfeel/contents/logout/Logout.qml @@ -132,6 +132,7 @@ horizontalCenter: parent.horizontalCenter bottom: parent.verticalCenter } + constrainText: false avatarPath: kuser.faceIconUrl iconSource: "user-identity" isCurrent: true