<table><tr><td style="">hein created this revision.<br />Restricted Application added a project: Plasma.
</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/D5504" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is implemented by TasksModel and allows clients to reliably<br />
query whether a row has an associated launcher. Useful for things<br />
like Pin/Unpin action state or layout decisions.</p>
<p>Previously clients would have to reimplement something like<br />
TaskTools::appsMatch on top of the model, which we absolutely do<br />
not want to do - there should only be one copy of the app matching<br />
logic for consistency's sake. In practice clients would do things<br />
like fetch LauncherUrl and run it by launcherPosition(), which<br />
omits appsMatch's AppId comparision, as an example of such unwated<br />
drift. This approach also avoids the large performance overhead<br />
involved.</p>
<p>The role is not implemented by the single-type or munging tasks<br />
models as it has no use there.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5504" rel="noreferrer">https://phabricator.kde.org/D5504</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>libtaskmanager/abstracttasksmodel.h<br />
libtaskmanager/tasksmodel.cpp</div></div></div><br /><div><strong>To: </strong>hein, Plasma, davidedmundson<br /><strong>Cc: </strong>plasma-devel, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>