[Task Manager] Elide context menu entries
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.
Differential Revision: https://phabricator.kde.org/D7181