<table><tr><td style="">astan updated the summary for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-zwhywxts3bp5rsv/" rel="noreferrer">(Show Details)</a><br />astan updated the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-maej3f5w4r63ecf/" rel="noreferrer">(Show Details)</a>
</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/D4406" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>EDIT DETAILS</strong><div><div style="white-space: pre-wrap; color: #74777D;">Instead of always adding space for the sorting indicator in item view<span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);"><br />
</span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);"> </span>headers, only add it if sorting is enabled. Without this fix, operations<span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);"><br />
</span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);"> </span>such as QTreeView::resizeColumnToContents(..) will not result in a snug<span style="padding: 0 2px; color: #802b2b; background: rgba(251, 175, 175, .7);"><br />
</span><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);"> </span>fit when the header section is wider than all items in the column.</div></div></div><br /><div><strong>EDIT DETAILS</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">```<br />
</span>#include <QApplication>                                                                                                               <div style="padding: 8px 0;">...</div>}<span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);"><br />
```</span><br />
<br />
Notice how before applying this fix, there's space reserved for the sorting<br />
indicator even on the QTreeView that has sorting disabled.<span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);"><br />
<br />
Before the fix:<br />
<br />
{F2405867}<br />
<br />
After the fix:<br />
<br />
{F2405871}</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R31 Breeze</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4406" rel="noreferrer">https://phabricator.kde.org/D4406</a></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>astan, Breeze<br /><strong>Cc: </strong>plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>