void QmakeBuildConfiguration::ctor() { connect(this, SIGNAL(environmentChanged()), this, SLOT(emitProFileEvaluateNeeded())); connect(target(), SIGNAL(kitChanged()), this, SLOT(kitChanged())); }
void GoProject::onActiveTargetChanged(ProjectExplorer::Target *target) { if (m_activeTarget) disconnect(m_activeTarget, SIGNAL(kitChanged()), this, SLOT(onKitChanged())); m_activeTarget = target; if (m_activeTarget) connect(target, SIGNAL(kitChanged()), this, SLOT(onKitChanged())); // make sure e.g. the default qml imports are adapted refresh(Configuration); }
bool GoProject::fromMap(const QVariantMap &map) { if (!Project::fromMap(map)) return false; // refresh first - project information is used e.g. to decide the default RC's refresh(Everything); // addedTarget calls updateEnabled on the runconfigurations // which needs to happen after refresh foreach (Target *t, targets()) addedTarget(t); connect(this, SIGNAL(addedTarget(ProjectExplorer::Target*)), this, SLOT(addedTarget(ProjectExplorer::Target*))); connect(this, SIGNAL(activeTargetChanged(ProjectExplorer::Target*)), this, SLOT(onActiveTargetChanged(ProjectExplorer::Target*))); // make sure we get updates on kit changes m_activeTarget = activeTarget(); if (m_activeTarget) connect(m_activeTarget, SIGNAL(kitChanged()), this, SLOT(onKitChanged())); return true; }
IosBuildStepConfigWidget::IosBuildStepConfigWidget(IosBuildStep *buildStep) : m_buildStep(buildStep) { m_ui = new Ui::IosBuildStep; m_ui->setupUi(this); Project *pro = m_buildStep->target()->project(); m_ui->buildArgumentsTextEdit->setPlainText(Utils::QtcProcess::joinArgs( m_buildStep->baseArguments())); m_ui->extraArgumentsLineEdit->setText(Utils::QtcProcess::joinArgs( m_buildStep->m_extraArguments)); m_ui->resetDefaultsButton->setEnabled(!m_buildStep->m_useDefaultArguments); updateDetails(); connect(m_ui->buildArgumentsTextEdit, SIGNAL(textChanged()), this, SLOT(buildArgumentsChanged())); connect(m_ui->resetDefaultsButton, SIGNAL(clicked()), this, SLOT(resetDefaultArguments())); connect(m_ui->extraArgumentsLineEdit, SIGNAL(editingFinished()), this, SLOT(extraArgumentsChanged())); connect(ProjectExplorerPlugin::instance(), SIGNAL(settingsChanged()), this, SLOT(updateDetails())); connect(m_buildStep->target(), SIGNAL(kitChanged()), this, SLOT(updateDetails())); connect(pro, SIGNAL(environmentChanged()), this, SLOT(updateDetails())); }
MaemoRunConfigurationWidget::MaemoRunConfigurationWidget( MaemoRunConfiguration *runConfiguration, QWidget *parent) : QWidget(parent), m_runConfiguration(runConfiguration) { QVBoxLayout *topLayout = new QVBoxLayout(this); topLayout->setMargin(0); QWidget *topWidget = new QWidget; topLayout->addWidget(topWidget); QVBoxLayout *mainLayout = new QVBoxLayout(topWidget); mainLayout->setMargin(0); m_remoteLinuxRunConfigWidget = new RemoteLinuxRunConfigurationWidget(runConfiguration, parent); mainLayout->addWidget(m_remoteLinuxRunConfigWidget); m_subWidget = new QWidget; mainLayout->addWidget(m_subWidget); QVBoxLayout *subLayout = new QVBoxLayout(m_subWidget); subLayout->setMargin(0); addMountWidgets(subLayout); connect(m_runConfiguration->target(), SIGNAL(kitChanged()), this, SLOT(updateMountWarning())); connect(m_runConfiguration->extraAspect<Debugger::DebuggerRunConfigurationAspect>(), SIGNAL(debuggersChanged()), SLOT(updateMountWarning())); updateMountWarning(); Core::Id devId = ProjectExplorer::DeviceTypeKitInformation::deviceTypeId(runConfiguration->target()->kit()); m_mountDetailsContainer->setVisible(MaddeDevice::allowsRemoteMounts(devId)); connect(m_runConfiguration, SIGNAL(enabledChanged()), this, SLOT(runConfigurationEnabledChange())); runConfigurationEnabledChange(); }
TypeSpecificDeviceConfigurationListModel::TypeSpecificDeviceConfigurationListModel(Target *target) : QAbstractListModel(target) { const DeviceManager * const devConfs = DeviceManager::instance(); connect(devConfs, SIGNAL(updated()), this, SIGNAL(modelReset())); connect(target, SIGNAL(kitChanged()), this, SIGNAL(modelReset())); }
void BareMetalRunConfiguration::init() { setDefaultDisplayName(defaultDisplayName()); connect(target(), SIGNAL(deploymentDataChanged()), SLOT(handleBuildSystemDataUpdated())); connect(target(), SIGNAL(applicationTargetsChanged()), SLOT(handleBuildSystemDataUpdated())); connect(target(), SIGNAL(kitChanged()), this, SLOT(handleBuildSystemDataUpdated())); // Handles device changes, etc. }
void Target::handleKitUpdates(Kit *k) { if (k != d->m_kit) return; setDisplayName(k->displayName()); setIcon(k->icon()); updateDefaultDeployConfigurations(); updateDeviceState(); // in case the device changed... emit kitChanged(); }