forked from qt-creator/qt-creator
Allow a project to opt-out of the normal deployment configuration
Even if we supported several deployment factories, we will need a way for projects to say that the normal deployment will not work for them. Change-Id: I6d42ef22a8ff50cc6f2ec3307f2c1d3f2faf4ef9 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -265,7 +265,7 @@ DeployConfigurationFactory *DeployConfigurationFactory::find(Target *parent, Dep
|
||||
|
||||
bool DeployConfigurationFactory::canHandle(Target *parent) const
|
||||
{
|
||||
if (!parent->project()->supportsKit(parent->kit()))
|
||||
if (!parent->project()->supportsKit(parent->kit()) || parent->project()->needsSpecialDeployment())
|
||||
return false;
|
||||
return DeviceTypeKitInformation::deviceTypeId(parent->kit()) == Constants::DESKTOP_DEVICE_TYPE;
|
||||
}
|
||||
|
||||
@@ -468,6 +468,11 @@ bool Project::supportsNoTargetPanel() const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Project::needsSpecialDeployment() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void Project::onBuildDirectoryChanged()
|
||||
{
|
||||
Target *target = qobject_cast<Target *>(sender());
|
||||
|
||||
@@ -123,6 +123,8 @@ public:
|
||||
|
||||
virtual bool supportsNoTargetPanel() const;
|
||||
|
||||
virtual bool needsSpecialDeployment() const;
|
||||
|
||||
signals:
|
||||
void displayNameChanged();
|
||||
void fileListChanged();
|
||||
|
||||
Reference in New Issue
Block a user