forked from qt-creator/qt-creator
ClangCodeModel: Prefer ui headers from ExtraCompilers
... to the ones from the actual build. The former are generally more up- to-date. Fixes: QTCREATORBUG-25937 Change-Id: I20859de9816457c340d9e1ec6a3008c536537d8b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -100,8 +100,10 @@ private:
|
||||
void addDummyUiHeaderOnDiskIncludePath()
|
||||
{
|
||||
const QString path = ClangModelManagerSupport::instance()->dummyUiHeaderOnDiskDirPath();
|
||||
if (!path.isEmpty())
|
||||
add({"-I", QDir::toNativeSeparators(path)});
|
||||
if (!path.isEmpty()) {
|
||||
prepend(QDir::toNativeSeparators(path));
|
||||
prepend("-I");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user