forked from qt-creator/qt-creator
Add system include path to HeaderPath and merge ProjectPartHeaderPath
System include paths are appended after other includes by the compiler. So we should set them as system includes and not as normal includes. Otherwise we change the include order. Headers in system include paths are not cluttering the screen with unwanted warning and by the way improve performance too. ProjectPartHeaderPath was a dopperganger of HeaderPath, so we merged them. Change-Id: I7c394b4098b697de79761499ffcd5913cc02d652 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -288,7 +288,7 @@ class ProjectHeaderPathsModel : public QAbstractListModel
|
||||
Q_OBJECT
|
||||
public:
|
||||
ProjectHeaderPathsModel(QObject *parent);
|
||||
void configure(const ProjectPartHeaderPaths &paths);
|
||||
void configure(const ProjectExplorer::HeaderPaths &paths);
|
||||
void clear();
|
||||
|
||||
enum Columns { TypeColumn, PathColumn, ColumnCount };
|
||||
@@ -299,14 +299,14 @@ public:
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||
|
||||
private:
|
||||
ProjectPartHeaderPaths m_paths;
|
||||
ProjectExplorer::HeaderPaths m_paths;
|
||||
};
|
||||
|
||||
ProjectHeaderPathsModel::ProjectHeaderPathsModel(QObject *parent) : QAbstractListModel(parent)
|
||||
{
|
||||
}
|
||||
|
||||
void ProjectHeaderPathsModel::configure(const ProjectPartHeaderPaths &paths)
|
||||
void ProjectHeaderPathsModel::configure(const ProjectExplorer::HeaderPaths &paths)
|
||||
{
|
||||
emit layoutAboutToBeChanged();
|
||||
m_paths = paths;
|
||||
|
||||
Reference in New Issue
Block a user