forked from qt-creator/qt-creator
Fix plugin unit tests when using projects
The ClangTools and the AutoTest plugins use an internal mechanism to load and configure a project when performing their integrated unit tests. Both assumed to have exactly one kit present for these tests. Make it possible to have more kits present when starting with existing settings or if more kits get automatically generated when starting with clean settings. Change-Id: If2bc66320c4854f1d34a19d17107e8f0b7d64d39 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -38,7 +38,10 @@ class Snapshot;
|
||||
}
|
||||
|
||||
namespace Core { class IEditor; }
|
||||
namespace ProjectExplorer { class Project; }
|
||||
namespace ProjectExplorer {
|
||||
class Kit;
|
||||
class Project;
|
||||
}
|
||||
|
||||
namespace TextEditor {
|
||||
class BaseTextEditor;
|
||||
@@ -118,7 +121,8 @@ public:
|
||||
ProjectOpenerAndCloser();
|
||||
~ProjectOpenerAndCloser(); // Closes opened projects
|
||||
|
||||
ProjectInfo open(const QString &projectFile, bool configureAsExampleProject = false);
|
||||
ProjectInfo open(const QString &projectFile, bool configureAsExampleProject = false,
|
||||
ProjectExplorer::Kit *kit = nullptr);
|
||||
|
||||
private:
|
||||
QList<ProjectExplorer::Project *> m_openProjects;
|
||||
|
||||
Reference in New Issue
Block a user