Commit 319720f4 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Don't add $QT_INSTALL_HEADERS/Qt to the include paths.

Indexing both /include/Qt and /include/{QtCore,QtGui,...} makes the code completion with fedora.
parent 952e35a9
......@@ -452,9 +452,12 @@ void Qt4Project::updateCodeModel()
QDir dir(newQtIncludePath);
foreach (QFileInfo info, dir.entryInfoList(QDir::Dirs)) {
if (! info.fileName().startsWith(QLatin1String("Qt")))
const QString path = info.fileName();
if (path == QLatin1String("Qt"))
continue; // skip $QT_INSTALL_HEADERS/Qt. There's no need to include it.
else if (path.startsWith(QLatin1String("Qt")) || path == QLatin1String("phonon"))
FindQt4ProFiles findQt4ProFiles;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment