Bug 359970 - Methods of QSettings (Qt4) class are not parsed
Summary: Methods of QSettings (Qt4) class are not parsed
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 4.90.91
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-01 20:33 UTC by Piotr Mierzwinski
Modified: 2016-03-03 00:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2016-03-01 20:33:30 UTC
There is simple code like below:
	QSettings st("Foo");
	QString sValue = st.value("key").toString();
	st.setValue("key", "value");
	sValue.remove("a");

When I move mouse cursor over "value" or "setValue" then nothing happen, and this string is black.
When I do the same for "remove" then I get helper tooltip and this string is colored.

It looks like QSettings methods would not be parsed.

Reproducible: Always


Actual Results:  
Not parsed QSettings methods.

Expected Results:  
QSettings methods should parsed.

I also added path to QSettings class into" Project Configuration -> Language support -> Includes/Imports", but it didn't help. BTW. Cache regenerated took much more time than after KDevelop restart.
Till now I had only paths to files with bunch of includes related with QtCore, QtGui and QtNetwork.

Tested with KDevelop and KDevplatform cloned at February 28th, 2016 after 10pm (branch 5.0).
Comment 1 Piotr Mierzwinski 2016-03-03 00:16:52 UTC
Sorry. I close bug report due to my fault :(.

When I added proper paths into "Project Configuration -> Language support -> Includes/Imports" parsing started work in mini test project, but I don't know why in big project (even after rebuild of cache) issue still persists :(. Probably some different parsing bugs block parsing these members :/. Neither refresh nor reopen file doesn't  help. I observed that every methods which are inherited from QWidget (i.e.: setEnabled, setFocus) are correctly parsed, other don't. It refers also to other classes (like QLabel, QTimer, QPushButton) not only mentioned QSettings.

Saying "proper paths" I meant paths to headers instead of paths to files contains bunch of headers inside.
Proper paths for Kubuntu 15.10.
/usr/include/qt4/QtCore/
/usr/include/qt4/QtGui/
/usr/include/qt4/QtNetwork/