<table><tr><td style="">leinir created this revision.<br />leinir added a reviewer: ngraham.<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/D20986">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If you have any actions in your GridDelegate, activating them would previously<br />
cause the delegate's onClicked signal to fire, which isn't always desirable.</p>

<p>The logic behind the original code was that it was supposed to set that item<br />
as the current one in the gridview, so a little bit of working around nested<br />
delegates (understandably) not forwarding models, and we have the ability to<br />
set the delegate as the current item.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>See any KCM which performs an action on clicking the thumbnail, and which has actions</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Prior to patch, both the action and the thumbnail slot would be called</li>
<li class="remarkup-list-item">With this patch, only the action is called</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R296 KDeclarative</div></div></div><br /><div><strong>BRANCH</strong><div><div>dont-click-just-set-current (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20986">https://phabricator.kde.org/D20986</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/qmlcontrols/kcmcontrols/qml/GridDelegate.qml</div></div></div><br /><div><strong>To: </strong>leinir, ngraham<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>