forked from qt-creator/qt-creator
API review of IRunConfigurationFactory.
Done with dt.
This commit is contained in:
@@ -478,7 +478,7 @@ QmlRunConfigurationFactory::~QmlRunConfigurationFactory()
|
||||
{
|
||||
}
|
||||
|
||||
bool QmlRunConfigurationFactory::canCreate(const QString &type) const
|
||||
bool QmlRunConfigurationFactory::canRestore(const QString &type) const
|
||||
{
|
||||
if (type.startsWith(m_type))
|
||||
return true;
|
||||
@@ -486,12 +486,12 @@ bool QmlRunConfigurationFactory::canCreate(const QString &type) const
|
||||
return false;
|
||||
}
|
||||
|
||||
QStringList QmlRunConfigurationFactory::canCreate(ProjectExplorer::Project *) const
|
||||
QStringList QmlRunConfigurationFactory::availableCreationTypes(ProjectExplorer::Project *) const
|
||||
{
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
QString QmlRunConfigurationFactory::nameForType(const QString &type) const
|
||||
QString QmlRunConfigurationFactory::displayNameForType(const QString &type) const
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -179,13 +179,13 @@ public:
|
||||
virtual ~QmlRunConfigurationFactory();
|
||||
|
||||
// used to recreate the runConfigurations when restoring settings
|
||||
virtual bool canCreate(const QString &type) const;
|
||||
virtual bool canRestore(const QString &type) const;
|
||||
|
||||
// used to show the list of possible additons to a project, returns a list of types
|
||||
virtual QStringList canCreate(ProjectExplorer::Project *pro) const;
|
||||
virtual QStringList availableCreationTypes(ProjectExplorer::Project *pro) const;
|
||||
|
||||
// used to translate the types to names to display to the user
|
||||
virtual QString nameForType(const QString &type) const;
|
||||
virtual QString displayNameForType(const QString &type) const;
|
||||
|
||||
virtual QSharedPointer<ProjectExplorer::RunConfiguration> create(ProjectExplorer::Project *project,
|
||||
const QString &type);
|
||||
|
||||
Reference in New Issue
Block a user