forked from qt-creator/qt-creator
Allow clearing the wizards path
The QmlDesigner now depends on the CppEditor plugin and the CppEditor plugin enables most of the C++ related wizards. The easiest solution is to simply clear the wizard paths before setting the QDS specific path. Change-Id: I7ee6c84693053e6ad32ec28a6cf262dee615992f Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -494,6 +494,11 @@ void JsonWizardFactory::addWizardPath(const FilePath &path)
|
|||||||
searchPaths().append(path);
|
searchPaths().append(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void JsonWizardFactory::clearWizardPaths()
|
||||||
|
{
|
||||||
|
searchPaths().clear();
|
||||||
|
}
|
||||||
|
|
||||||
void JsonWizardFactory::setVerbose(int level)
|
void JsonWizardFactory::setVerbose(int level)
|
||||||
{
|
{
|
||||||
m_verbose = level;
|
m_verbose = level;
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ class PROJECTEXPLORER_EXPORT JsonWizardFactory : public Core::IWizardFactory
|
|||||||
public:
|
public:
|
||||||
// Add search paths for wizard.json files. All subdirs are going to be checked.
|
// Add search paths for wizard.json files. All subdirs are going to be checked.
|
||||||
static void addWizardPath(const Utils::FilePath &path);
|
static void addWizardPath(const Utils::FilePath &path);
|
||||||
|
static void clearWizardPaths();
|
||||||
|
|
||||||
// actual interface of the wizard factory:
|
// actual interface of the wizard factory:
|
||||||
class Generator {
|
class Generator {
|
||||||
|
|||||||
Reference in New Issue
Block a user