Review Request 119137: Update the QtHelp plugin so that it works with the latest QMLJS version

Denis Steckelmacher steckdenis at
Mon Jul 7 09:55:38 UTC 2014

This is an automatically generated e-mail. To reply, visit:

(Updated July 7, 2014, 9:55 a.m.)

Review request for KDevelop.


Use idParts.isEmpty() instead of idParts.count()>0, and put DUChainReadLocker where it should be.

Repository: kdevelop


This patch slightly simplifies how QML declarations are transformed to QtHelp identifiers and fixes two bugs:

* Namespace alias declarations have no abstractType(), so the old code that used abstractType() without checking that is wasn't null crashed
* The current QML/JS plugin puts declarations in namespaces (QtQuick2.0, QtQuick.Controls1.0, etc). These namespaces have to be stripped in order for the identifiers to be found by QtHelp

Diffs (updated)

  documentation/qthelp/qthelpproviderabstract.cpp 9ba7ccd 



C++ declarations are still recognized and the QtHelp testsuite passes with this patch applied. Manual testing has shown that QML declarations are properly bound to their documentation. Help for QML properties does not work with this patch, but it did not work either before this patch, with the latest QML/JS plugin.


Denis Steckelmacher

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list