<table><tr><td style="">broulik created this revision.<br />broulik added reviewers: Plasma, hpereiradacosta.<br />broulik set the repository for this revision to R242 Plasma Framework (Library).<br />Restricted Application added projects: Plasma, Frameworks.<br />Restricted Application added subscribers: Frameworks, plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D4257" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This allows to limit the maximum width of a menu. It can be useful for instance in task manager where long file names for recent documents will result in gigantic menus.</p>
<p>The property has a RESET method (which is called if you assign "undefined") which will set it back to QWIDGETSIZE_MAX to remove the size restriction.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Comes with a manual test. The menu itself is still placed as though it occupied the full width. :(</p>
<p><a href="https://phabricator.kde.org/F2163013" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">F2163013: Screenshot_20170123_230412.png</a></p>
<p>Hugo, any idea what's up with Breeze theme not eliding the menu items? This is with both device pixel ratio 1 (plasmashell) and 2 (in the screenshot). I recall there being some Qt recently having been fixed but I'm not sure, might as well be a Breeze bug, though it also happens with Fusion.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4257" rel="noreferrer">https://phabricator.kde.org/D4257</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/declarativeimports/plasmacomponents/qmenu.cpp<br />
src/declarativeimports/plasmacomponents/qmenu.h<br />
tests/components/menu.qml</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>broulik, Plasma, hpereiradacosta<br /><strong>Cc: </strong>plasma-devel, Frameworks, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>