forked from qt-creator/qt-creator
AbstractRemoteLinuxDeployStep: Make recipe return GroupItem
There is no need for extra nested Group item in deployRecipe() overloads, as sometimes it's just one task, like in case of QdbStopApplicationStep or CustomCommandDeployStep. Change-Id: I89cdb703c24198f3cbdfb17d0317e40f1929c376 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -54,7 +54,7 @@ public:
|
||||
private:
|
||||
QString remoteFilePath() const;
|
||||
bool isDeploymentNecessary() const final;
|
||||
Group deployRecipe() final;
|
||||
GroupItem deployRecipe() final;
|
||||
GroupItem uploadTask();
|
||||
GroupItem installTask();
|
||||
|
||||
@@ -115,7 +115,7 @@ GroupItem TarPackageDeployStep::installTask()
|
||||
return ProcessTask(setupHandler, doneHandler, errorHandler);
|
||||
}
|
||||
|
||||
Group TarPackageDeployStep::deployRecipe()
|
||||
GroupItem TarPackageDeployStep::deployRecipe()
|
||||
{
|
||||
return Group { uploadTask(), installTask() };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user