<table><tr><td style="">rkflx created this revision.<br />rkflx added a reviewer: Frameworks.<br />Restricted Application added a project: Frameworks.<br />rkflx requested review of this revision.
</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/D12591">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The file dialog allows to move the file name labels from next to the<br />
icon to right under the icon for <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Short View</span></span></span>. However, having to go in<br />
a deeply nested <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Settings button</span></span><span style="color: #92969D;"> → </span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Icon Position</span></span><span style="color: #92969D;"> → </span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Above File Name</span></span></span><br />
submenu makes it both hard to discover and cumbersome to use. Ideally<br />
this setting could be accessed directly from the menu for good usability.</p>

<p>Making it easy to change back settings is especially important in light<br />
of <a href="https://phabricator.kde.org/D12326" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D12326</a>, which will enable <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Icons Above File Name</span></span></span> by default.</p>

<p>We linearize the submenu entries from the submenu to the top-level menu,<br />
which works just fine as there are only two entries, increasing the<br />
overall menu size by only one item while removing an entire submenu.</p>

<p>While the submenu itself is not advertised in the API docs, it was<br />
publicly accessible, and therefore is kept for compatiblity reasons<br />
(although with a slight change in wording).</p>

<p>Ref <a href="https://phabricator.kde.org/T8552" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">T8552</a></p>

<p>FIXED-IN: 5.47</p></div></div><br /><div><strong>TEST PLAN</strong><div><p><tt style="background: #ebebeb; font-size: 13px;">kdialog --getopenfilename</tt>, switch view modes via the settings<br />
button, check that the icon position settings are only enabled for<br />
<span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">View</span></span><span style="color: #92969D;"> → </span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Short View</span></span></span> and still work properly.</p>

<p>Before:<br />
<a href="https://phabricator.kde.org/F5826732" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F5826732: KIO-icon-position-before.png</a></p>

<p>After:<br />
<a href="https://phabricator.kde.org/F5826733" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F5826733: KIO-icon-position-after.png</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>icon-position-usability (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12591">https://phabricator.kde.org/D12591</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/filewidgets/kdiroperator.cpp<br />
src/filewidgets/kfilewidget.cpp</div></div></div><br /><div><strong>To: </strong>rkflx, Frameworks<br /><strong>Cc: </strong>michaelh, bruns<br /></div>