<table><tr><td style="">leinir created this revision.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />leinir 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/D27544">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The old downloadwidget's update system would explicitly require a user<br />
to pick which download item to use for updating if there was more than<br />
one available. This work is an attempt at implementing this at the<br />
engine level, while also allowing for there to be no requirement to<br />
make an active choice, unless there is no way to deduce which of<br />
the various potential download items is the one we are trying to<br />
update.</p>
<p>The current heuristics are:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">If there is one downloaditem, that's what we're updating</li>
<li class="remarkup-list-item">If there are more, first try and see if one has the precise url as the previously installed payload</li>
<li class="remarkup-list-item">If that fails, check for filename matches (without the rest of the url)</li>
<li class="remarkup-list-item">Only if that fails, present the user with a choice</li>
</ul>
<p>Add an explicit update function in the QtQuick items model</p>
<p>Fix erroneous uses of installItem, and use updateItem for updates<br />
in the QtQuick components</p>
<p>BUG:417510</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R304 KNewStuff</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-update (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27544">https://phabricator.kde.org/D27544</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/engine.cpp<br />
src/qtquick/qml/EntryDetails.qml<br />
src/qtquick/qml/NewStuffItem.qml<br />
src/qtquick/qml/private/entrygriddelegates/BigPreviewDelegate.qml<br />
src/qtquick/qml/private/entrygriddelegates/ThumbDelegate.qml<br />
src/qtquick/qml/private/entrygriddelegates/TileDelegate.qml<br />
src/qtquick/quickitemsmodel.cpp<br />
src/qtquick/quickitemsmodel.h</div></div></div><br /><div><strong>To: </strong>leinir<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>