BareMetal: Code cosmetics

Change-Id: Ib98280a5913649f26625761584bd40b20ae7a20f
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: Tim Sander <tim@krieglstein.org>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-06-19 19:14:56 +02:00
parent 4ae01e973a
commit c12a74aa52
11 changed files with 88 additions and 112 deletions

View File

@@ -29,6 +29,8 @@
#include "baremetalgdbcommandsdeploystep.h"
#include <QFormLayout>
using namespace ProjectExplorer;
namespace BareMetal {
@@ -62,8 +64,6 @@ QString BareMetalGdbCommandsDeployStepWidget::summaryText() const
return displayName();
}
} // namespace Internal
BareMetalGdbCommandsDeployStep::BareMetalGdbCommandsDeployStep(BuildStepList *bsl,
const Core::Id id)
: BuildStep(bsl, id)
@@ -97,20 +97,20 @@ bool BareMetalGdbCommandsDeployStep::fromMap(const QVariantMap &map)
{
if (!BuildStep::fromMap(map))
return false;
m_gdbCommands = map.value(QLatin1String(Internal::GdbCommandsKey)).toString();
m_gdbCommands = map.value(QLatin1String(GdbCommandsKey)).toString();
return true;
}
QVariantMap BareMetalGdbCommandsDeployStep::toMap() const
{
QVariantMap map = BuildStep::toMap();
map.insert(QLatin1String(Internal::GdbCommandsKey),m_gdbCommands);
map.insert(QLatin1String(GdbCommandsKey),m_gdbCommands);
return map;
}
ProjectExplorer::BuildStepConfigWidget *BareMetalGdbCommandsDeployStep::createConfigWidget()
{
return new Internal::BareMetalGdbCommandsDeployStepWidget(*this);
return new BareMetalGdbCommandsDeployStepWidget(*this);
}
Core::Id BareMetalGdbCommandsDeployStep::stepId()
@@ -138,4 +138,5 @@ bool BareMetalGdbCommandsDeployStep::init()
return true;
}
} // namespace Internal
} // namespace BareMetal