forked from qt-creator/qt-creator
QmakeProjectManager: Add a wizard to import project for editing only
This is Heavily Inspired by the Generic project import wizard. It basically does what we commonly refer to as "Create a dummy .pro file for editing stuff in Creator". The result is generally more flexible (project logic can be added to the .pro) and better supported in Creator (.pro is first class citizen, the Generic project less so). The qmake/make build steps are currently generally enabled but are only expected to work for very simple projects like the typical "one file example for teaching purposes". Change-Id: I4976c34d423f256ea9f8f9e569c9783d90f380e3 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include "wizards/guiappwizard.h"
|
||||
#include "wizards/librarywizard.h"
|
||||
#include "wizards/testwizard.h"
|
||||
#include "wizards/simpleprojectwizard.h"
|
||||
#include "wizards/subdirsprojectwizard.h"
|
||||
#include "customwidgetwizard/customwidgetwizard.h"
|
||||
#include "qmakeprojectmanagerconstants.h"
|
||||
@@ -90,11 +91,15 @@ bool QmakeProjectManagerPlugin::initialize(const QStringList &arguments, QString
|
||||
|
||||
ProjectExplorer::KitManager::registerKitInformation(new QmakeKitInformation);
|
||||
|
||||
IWizardFactory::registerFactoryCreator([]() {
|
||||
QList<IWizardFactory *> result;
|
||||
result << new SubdirsProjectWizard << new GuiAppWizard << new LibraryWizard
|
||||
<< new TestWizard << new CustomWidgetWizard;
|
||||
return result;
|
||||
IWizardFactory::registerFactoryCreator([] {
|
||||
return QList<IWizardFactory *> {
|
||||
new SubdirsProjectWizard,
|
||||
new GuiAppWizard,
|
||||
new LibraryWizard,
|
||||
new TestWizard,
|
||||
new CustomWidgetWizard,
|
||||
new SimpleProjectWizard
|
||||
};
|
||||
});
|
||||
|
||||
addAutoReleasedObject(new CustomWizardMetaFactory<CustomQmakeProjectWizard>
|
||||
|
||||
Reference in New Issue
Block a user