<table><tr><td style="">dhaumann added a comment.
</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/D7164" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>This patch adds four functions that all "reimplement" functions that exist in base classes.<br />
However, these functions are not virtual. As such, adding the functions is probably fine (BC), but essentially the correct behavior now depends on calling the correct function (namely the ones from KSqueezedTextLabel).</p>
<p>This by itself is a bit unfortunate, since it opens doors for bugs. This, however, is not properly fixable for KF 5 / Qt 5, so I guess this approach is fine.</p>
<p>The functions itself are ok, but I think the remark "Reimplementation of... but see setText() for additional remark" is a bit fuzzy. I would prefer to copy the "<span class="phabricator-remarkup-mention-unknown">@warning</span> This function in the base class is not virtual. Therefore make sure to call this function" or some similar text. This would be much more explicit. And again, I would prefer having such a remark also in the detailed description of the class itself.</p>
<p>Any other comments would be very much appreciated :-)</p>
<p>Finally, would that be fixable for Qt 6? Maybe instead of deriving from QLabel, derive from QWidget and then *use* a QLabel internally as member variable? Nothing for this patch, but still maybe worth to think about. If we have a proper solution, we should add a comment like // TODO: KF6 ...</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R236 KWidgetsAddons</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7164" rel="noreferrer">https://phabricator.kde.org/D7164</a></div></div><br /><div><strong>To: </strong>rkflx, Frameworks<br /><strong>Cc: </strong>dhaumann<br /></div>