forked from qt-creator/qt-creator
TaskTree: Rename TaskItem into GroupItem
Not all classes derived from TaskItem are tasks, but the common denominator is that all may be placed inside a group: thus GroupItem sounds more appropriate. Addresses the 10th point in the bugreport below. Task-number: QTCREATORBUG-28741 Change-Id: I94d728a8e39ec732810f2e5bbe6b9a76f3bc387c Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -55,8 +55,8 @@ private:
|
||||
QString remoteFilePath() const;
|
||||
bool isDeploymentNecessary() const final;
|
||||
Group deployRecipe() final;
|
||||
TaskItem uploadTask();
|
||||
TaskItem installTask();
|
||||
GroupItem uploadTask();
|
||||
GroupItem installTask();
|
||||
|
||||
FilePath m_packageFilePath;
|
||||
};
|
||||
@@ -71,7 +71,7 @@ bool TarPackageDeployStep::isDeploymentNecessary() const
|
||||
return hasLocalFileChanged(DeployableFile(m_packageFilePath, {}));
|
||||
}
|
||||
|
||||
TaskItem TarPackageDeployStep::uploadTask()
|
||||
GroupItem TarPackageDeployStep::uploadTask()
|
||||
{
|
||||
const auto setupHandler = [this](FileTransfer &transfer) {
|
||||
const FilesToTransfer files {{m_packageFilePath,
|
||||
@@ -90,7 +90,7 @@ TaskItem TarPackageDeployStep::uploadTask()
|
||||
return FileTransferTask(setupHandler, doneHandler, errorHandler);
|
||||
}
|
||||
|
||||
TaskItem TarPackageDeployStep::installTask()
|
||||
GroupItem TarPackageDeployStep::installTask()
|
||||
{
|
||||
const auto setupHandler = [this](Process &process) {
|
||||
const QString cmdLine = QLatin1String("cd / && tar xvf ") + remoteFilePath()
|
||||
|
||||
Reference in New Issue
Block a user