<table><tr><td style="">dfaure updated this revision to Diff 76701.<br />dfaure retitled this revision from "KDirModel: implement showing "/" as a root node, optionally" to "KDirModel: implement showing a root node for the requested URL".<br />dfaure edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-m2a2ixf3wlc4dwj/">(Show Details)</a><br />dfaure removed a subscriber: rrosch.<br />dfaure 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/D25315">View Revision</a></tr></table><br /><div><div><p>Rework the patch so that any node can be shown as a visible root.</p>
<p>This is actually much cleaner, no more empty-URL hacks.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">The API fo</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">To trigge</span>r th<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">is is to call openUrl(QUrl())</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">is</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">which is understood<br />
to be the parent of "file:///".</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">cal KDirModel::openUrl(rootUrl, KDirModel::ShowRoot)</span><br />
<br />
KDirModel has always been lacking a openUrl method anyway, it's always<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D25315?vs=70183&id=76701">https://phabricator.kde.org/D25315?vs=70183&id=76701</a></div></div><br /><div><strong>BRANCH</strong><div><div>2019_11_kdirmodel_root</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25315">https://phabricator.kde.org/D25315</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/kdirmodeltest.cpp<br />
autotests/kdirmodeltest.h<br />
src/widgets/kdirmodel.cpp<br />
src/widgets/kdirmodel.h<br />
tests/kdirmodeltest_gui.cpp</div></div></div><br /><div><strong>To: </strong>dfaure, stefanocrocco, elvisangelaccio, meven, apol<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns, rrosch<br /></div>