forked from qt-creator/qt-creator
Add Deploy steps
* Add "Deploy" to BuildSteps::Type * Update UIs to handle deploy steps * Turn existing package creation steps from build type to deploy type * Move packaging steps into deploy steps when loading projects Reviewed-by: dt
This commit is contained in:
@@ -83,10 +83,16 @@ void BuildStepsPage::updateSummary()
|
||||
|
||||
QString BuildStepsPage::displayName() const
|
||||
{
|
||||
if (m_type == BuildStep::Build)
|
||||
switch(m_type) {
|
||||
case BuildStep::Build:
|
||||
return tr("Build Steps");
|
||||
else
|
||||
case BuildStep::Deploy:
|
||||
return tr("Deploy Steps");
|
||||
case BuildStep::Clean:
|
||||
return tr("Clean Steps");
|
||||
default:
|
||||
return tr("Unknown Steps");
|
||||
}
|
||||
}
|
||||
|
||||
void BuildStepsPage::init(BuildConfiguration *bc)
|
||||
@@ -295,7 +301,19 @@ void BuildStepsPage::setupUi()
|
||||
QHBoxLayout *hboxLayout = new QHBoxLayout();
|
||||
hboxLayout->setContentsMargins(0, 4, 0, 0);
|
||||
m_addButton = new QPushButton(this);
|
||||
m_addButton->setText(m_type == BuildStep::Clean ? tr("Add Clean Step") : tr("Add Build Step"));
|
||||
switch (m_type) {
|
||||
case BuildStep::Clean:
|
||||
m_addButton->setText(tr("Add Clean Step"));
|
||||
break;
|
||||
case BuildStep::Build:
|
||||
m_addButton->setText(tr("Add Build Step"));
|
||||
break;
|
||||
case BuildStep::Deploy:
|
||||
m_addButton->setText(tr("Add Deploy Step"));
|
||||
break;
|
||||
default:
|
||||
m_addButton->setText(tr("Add Step"));
|
||||
}
|
||||
m_addButton->setMenu(new QMenu(this));
|
||||
hboxLayout->addWidget(m_addButton);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user