<table><tr><td style="">broulik added inline comments.
</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/D25326">View Revision</a></tr></table><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D25326#inline-143346">View Inline</a><span style="color: #4b4d51; font-weight: bold;">davidedmundson</span> wrote in <span style="color: #4b4d51; font-weight: bold;">sortfiltermodel.h:43</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">It's not listed in <a href="https://doc.qt.io/qt-5/qtqml-cppintegration-data.html" class="remarkup-link" target="_blank" rel="noreferrer">https://doc.qt.io/qt-5/qtqml-cppintegration-data.html</a></p>

<p style="padding: 0; margin: 8px;">We need to test</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Bummer. I tried, a JS <tt style="background: #ebebeb; font-size: 13px;">RegExp</tt> (both <tt style="background: #ebebeb; font-size: 13px;">new RegExp()</tt> and <tt style="background: #ebebeb; font-size: 13px;">/literal syntax/</tt>) get turned into a <tt style="background: #ebebeb; font-size: 13px;">QRegExp</tt>. It does *not* work with <tt style="background: #ebebeb; font-size: 13px;">QRegularExpression</tt> :(</p>

<p style="padding: 0; margin: 8px;">There's a <tt style="background: #ebebeb; font-size: 13px;">RegularExpressionValidator</tt> which uses <tt style="background: #ebebeb; font-size: 13px;">QRegularExpression</tt> but it's in Qt 5.14. Maybe they fixed that recently - doesn't really help us here, though.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D25326#inline-143345">View Inline</a><span style="color: #4b4d51; font-weight: bold;">davidedmundson</span> wrote in <span style="color: #4b4d51; font-weight: bold;">sortfiltermodel.h:63</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">Did some investigation we have our handling just to emit a signal when the property changes!</p>

<p style="padding: 0; margin: 8px;">Another good thing to try to upstream.</p>

<p style="padding: 0; margin: 8px;">Keeping the same name allows us to subtly drop the API in the future and keep clients working.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p style="padding: 0; margin: 8px;">Another good thing to try to upstream.</p></blockquote>

<p style="padding: 0; margin: 8px;">+1 given they're all <tt style="background: #ebebeb; font-size: 13px;">QObject</tt>s already anyway</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D25326#inline-143344">View Inline</a><span style="color: #4b4d51; font-weight: bold;">davidedmundson</span> wrote in <span style="color: #4b4d51; font-weight: bold;">sortfiltermodel.h:78</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">I think so. We've implemented it in a lot of plasma models, presumably for some reason.</p>

<p style="padding: 0; margin: 8px;">Would be a good thing to try and upstream though.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p style="padding: 0; margin: 8px;">presumably for some reason.</p></blockquote>

<p style="padding: 0; margin: 8px;">Either because someone was too lazy to use the respective property on the <tt style="background: #ebebeb; font-size: 13px;">Repeater</tt> or <tt style="background: #ebebeb; font-size: 13px;">ListView</tt> or before <tt style="background: #ebebeb; font-size: 13px;">rowCount()</tt> was <tt style="background: #ebebeb; font-size: 13px;">Q_INVOKABLE</tt>. Not sure it's upstreamable since it assumes it's a flast list. Maybe something for QAbstract*List*Model rather than QAbstract*Item*Model</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D25326#inline-142994">View Inline</a><span style="color: #4b4d51; font-weight: bold;">davidedmundson</span> wrote in <span style="color: #4b4d51; font-weight: bold;">sortfiltermodel.h:138</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">I don't see why we would need a d pointer. We may as well self an allocation.</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p style="padding: 0; margin: 8px;">Perhaps rename the header to _p.h then?</p></blockquote>

<p style="padding: 0; margin: 8px;">We haven't done that universally in all frameworks, but sure I could.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Was just wondering but if it's only to be used from QML and not exported, doesn't need one I suppose.</p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R275 KItemModels</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25326">https://phabricator.kde.org/D25326</a></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>broulik, ahiemstra, mart, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>