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