Wizard: Make wizards report which type of projects they can support

Use that information to decide whether the wizard is a File or ProjectWizard

Change-Id: Ie630e206317c7e01e77c811819cb95b360a04e09
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-12-11 13:48:50 +01:00
parent cc817d508f
commit 4fde1b5501
6 changed files with 26 additions and 14 deletions

View File

@@ -29,6 +29,7 @@
****************************************************************************/
#include "genericprojectwizard.h"
#include "genericprojectconstants.h"
#include "filesselectionwizardpage.h"
#include <coreplugin/icore.h>
@@ -114,7 +115,7 @@ QString GenericProjectWizardDialog::projectName() const
GenericProjectWizard::GenericProjectWizard()
{
setWizardKind(ProjectWizard);
setSupportedProjectTypes({ Constants::GENERICPROJECT_ID });
// TODO do something about the ugliness of standard icons in sizes different than 16, 32, 64, 128
{
QPixmap icon(22, 22);