<table><tr><td style="">antonanikin retitled this revision from "qthelp_fix" to "Fix QtHelp".<br />antonanikin updated the summary for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-34lmeily266tpo2/" rel="noreferrer">(Show Details)</a><br />antonanikin updated the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-4637syegvdqscg6/" rel="noreferrer">(Show Details)</a><br />antonanikin added a reviewer: KDevelop.
</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/D3197" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>EDIT DETAILS</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">This patch fixes broken code-context help. Old version has buggy behavior:<br />
<br />
1) Place following code to some source file (line numbers is for example):<br />
<br />
```<br />
1: QHBoxLayout hbl;<br />
2: QLayout* l = &hbl;<br />
3: l->addWidget(new QPushButton);<br />
4: hbl.addWidget(new QPushButton);<br />
```<br />
Restart KDevelop.<br />
<br />
2) Place cursor to `addWidget` in line `3` and call "Show Documentation" from context menu. Help page is shown and all it's OK.<br />
<br />
4) Place cursor to `addWidget` in line `4` and call help again. Help page is shown but with wrong contents.<br />
<br />
5) Place cursor again to `addWidget` in line 3 and call "Show documentation". Help page is shown but again with wrong contents.<br />
<br />
6) Such broken search will be until next restart.</span></div></div></div><br /><div><strong>EDIT DETAILS</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #3e6d35; background: rgba(151, 234, 151, .6);">Tested on master branch.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKDEVELOP KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3197" rel="noreferrer">https://phabricator.kde.org/D3197</a></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>