Rename StepType to BuildStep::Type

* Move and rename the enum
 * Add Q_ENUMS macro

Reviewed-by: dt
This commit is contained in:
Tobias Hunger
2010-07-06 17:49:09 +02:00
parent 7fa5d25e0f
commit 8ccbd0ec6b
30 changed files with 178 additions and 174 deletions

View File

@@ -50,7 +50,7 @@
using namespace ProjectExplorer;
using namespace ProjectExplorer::Internal;
BuildStepsPage::BuildStepsPage(Target *target, StepType type) :
BuildStepsPage::BuildStepsPage(Target *target, BuildStep::Type type) :
BuildConfigWidget(),
m_type(type),
m_addButton(0)
@@ -83,7 +83,7 @@ void BuildStepsPage::updateSummary()
QString BuildStepsPage::displayName() const
{
if (m_type == Build)
if (m_type == BuildStep::Build)
return tr("Build Steps");
else
return tr("Clean Steps");
@@ -295,7 +295,7 @@ void BuildStepsPage::setupUi()
QHBoxLayout *hboxLayout = new QHBoxLayout();
hboxLayout->setContentsMargins(0, 4, 0, 0);
m_addButton = new QPushButton(this);
m_addButton->setText(m_type == Clean ? tr("Add Clean Step") : tr("Add Build Step"));
m_addButton->setText(m_type == BuildStep::Clean ? tr("Add Clean Step") : tr("Add Build Step"));
m_addButton->setMenu(new QMenu(this));
hboxLayout->addWidget(m_addButton);