Don't elide UserDelegate text when there's only one item

Authored by davidedmundson on Aug 23 2017, 8:59 AM.

Description

Don't elide UserDelegate text when there's only one item

Summary:
In the lock screen the user delegate has to elide the text when there
are multiple items next to each other, otherwise it will overlap.

When there's only one item (which is quite common) we don't need to
and doing so looks weird.

Test Plan:
Modified SDDM dummydata/userModel to have one entry with a long name
and back to multiple entries.

Reviewers: Plasma, broulik

Reviewed By: Plasma, broulik

Subscribers: broulik, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D7472

Details

Committed
davidedmundsonAug 23 2017, 8:59 AM
Reviewer
Plasma
Differential Revision
D7472: Don't elide UserDelegate text when there's only one item
Parents
R120:cc8647481095: Remove pointless data copy in lockscreen delegate
Branches
Unknown
Tags
Unknown