<table><tr><td style="">antonanikin created this revision.<br />antonanikin added a reviewer: KDevelop.<br />antonanikin added a subscriber: kdevelop-devel.
</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/D3206" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch fixes broken code-context help for template data types. Old version has buggy behavior:</p>
<ol class="remarkup-list">
<li class="remarkup-list-item">Place following code to some source file:</li>
</ol>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">#include <cmath>
#include <math.h>
#include <vector>
#include <QList>
void test()
{
QList<int> l;
l.append(1);
double x = std::sin(1);
double y = sin(1);
std::vector<int> v;
}</pre></div>
<ol class="remarkup-list" start="2">
<li class="remarkup-list-item">Place cursor to any function or templated type and call "Show Documentation" from context menu. Help page is NOT shown.</li>
</ol>
<p>This behavior caused by wrong usage of documentation Url - we pass full qualified type (with template information like <tt style="background: #ebebeb; font-size: 13px;">QList<...></tt>), but documentation has topics only for plain data type like <tt style="background: #ebebeb; font-size: 13px;">QList</tt>.</p>
<p>This fix based on revision <a href="https://phabricator.kde.org/D3205" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">D3205</a> (kdevplatform).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tested on master branch.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKDEVELOP KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>help_templates_fix</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3206" rel="noreferrer">https://phabricator.kde.org/D3206</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>documentation/manpage/manpageplugin.cpp<br />
documentation/manpage/manpageplugin.h<br />
documentation/qthelp/qthelpproviderabstract.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>antonanikin, KDevelop<br /><strong>Cc: </strong>kdevelop-devel<br /></div>