<table><tr><td style="">kossebau created this revision.<br />Restricted Application added projects: Kate, Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</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/D8708" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The AbstractAnnotationItemDelegate is modelled after QAbstractItemDelegate<br />
and should allow consumers of the annotation interfaces to customize the<br />
rendering, the context menu and the tooltip per annotation as wanted.</p>

<p>Yet to be solved:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">whether, and if how, to adapt to zoomed content</li>
<li class="remarkup-list-item">which UI font to recommend if not wanting to use content font</li>
<li class="remarkup-list-item">tooltip hiding API (and perhaps support for async shown tooltips)</li>
</ul>

<p>and some other TODOs spread over the patch</p>

<p>Done together with some new patches for KDevelop.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>BRANCH</strong><div><div>addAnnotationItemDelegate</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8708" rel="noreferrer">https://phabricator.kde.org/D8708</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/CMakeLists.txt<br />
src/include/CMakeLists.txt<br />
src/include/ktexteditor/abstractannotationitemdelegate.h<br />
src/include/ktexteditor/annotationinterface.h<br />
src/view/kateannotationitemdelegate.cpp<br />
src/view/kateannotationitemdelegate.h<br />
src/view/kateview.cpp<br />
src/view/kateview.h<br />
src/view/kateviewhelpers.cpp<br />
src/view/kateviewhelpers.h<br />
src/view/kateviewinternal.h</div></div></div><br /><div><strong>To: </strong>kossebau<br /><strong>Cc: </strong>Frameworks, kevinapavew, ngraham, demsking, cullmann, sars, dhaumann<br /></div>