D7181: [Task Manager] Elide context menu entries

Kai Uwe Broulik noreply at phabricator.kde.org
Mon Aug 7 12:46:20 UTC 2017


broulik created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  QMenu doesn't really support maximumWidth. The window's size would be limited but its content just cut off rather than nicely elided.
  Instead, we manually elide in a crude way using TextMetrics.

TEST PLAN
  Superseds https://phabricator.kde.org/D4281
  
  Opened a file with a super long file name in kwrite, no longer caused the menu to become huge

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D7181

AFFECTED FILES
  applets/taskmanager/package/contents/code/layout.js
  applets/taskmanager/package/contents/ui/ContextMenu.qml

To: broulik, #plasma, hein
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170807/3856b1d5/attachment.html>


More information about the Plasma-devel mailing list