forked from qt-creator/qt-creator
Maemo: Move deploying to dedicated deploy step.
Reviewed-by: kh1
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
#include "maemodeploystepwidget.h"
|
||||
#include "ui_maemodeploystepwidget.h"
|
||||
|
||||
#include "maemodeploystep.h"
|
||||
#include "maemorunconfiguration.h"
|
||||
|
||||
#include <projectexplorer/buildconfiguration.h>
|
||||
#include <projectexplorer/target.h>
|
||||
|
||||
namespace Qt4ProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
MaemoDeployStepWidget::MaemoDeployStepWidget() :
|
||||
MaemoDeployStepWidget::MaemoDeployStepWidget(MaemoDeployStep *step) :
|
||||
ProjectExplorer::BuildStepConfigWidget(),
|
||||
ui(new Ui::MaemoDeployStepWidget)
|
||||
ui(new Ui::MaemoDeployStepWidget),
|
||||
m_step(step)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
@@ -18,11 +25,23 @@ MaemoDeployStepWidget::~MaemoDeployStepWidget()
|
||||
|
||||
void MaemoDeployStepWidget::init()
|
||||
{
|
||||
const ProjectExplorer::RunConfiguration * const rc =
|
||||
m_step->buildConfiguration()->target()->activeRunConfiguration();
|
||||
if (rc) {
|
||||
connect(qobject_cast<const MaemoRunConfiguration *>(rc),
|
||||
SIGNAL(deviceConfigurationChanged(ProjectExplorer::Target *)),
|
||||
this, SLOT(handleDeviceUpdate()));
|
||||
}
|
||||
}
|
||||
|
||||
void MaemoDeployStepWidget::handleDeviceUpdate()
|
||||
{
|
||||
emit updateSummary();
|
||||
}
|
||||
|
||||
QString MaemoDeployStepWidget::summaryText() const
|
||||
{
|
||||
return tr("<b>Deploy to device</b> ");
|
||||
return tr("<b>Deploy to device</b>: ") + m_step->deviceConfig().name;
|
||||
}
|
||||
|
||||
QString MaemoDeployStepWidget::displayName() const
|
||||
|
||||
Reference in New Issue
Block a user