forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.3'
Conflicts: qtcreator.pri qtcreator.qbs src/plugins/projectexplorer/projectexplorer.cpp src/shared/qbs Change-Id: I6d91042bb48314d00be721099aed19feca74e0ce
This commit is contained in:
@@ -134,7 +134,7 @@ void IosDeployStep::run(QFutureInterface<bool> &fi)
|
||||
}
|
||||
m_transferStatus = TransferInProgress;
|
||||
QTC_CHECK(m_toolHandler == 0);
|
||||
m_toolHandler = new IosToolHandler(IosDeviceType(), this);
|
||||
m_toolHandler = new IosToolHandler(IosDeviceType(IosDeviceType::IosDevice), this);
|
||||
m_futureInterface.setProgressRange(0, 200);
|
||||
m_futureInterface.setProgressValueAndText(0, QLatin1String("Transferring application"));
|
||||
m_futureInterface.reportStarted();
|
||||
|
||||
@@ -292,7 +292,7 @@ void IosDeviceManager::deviceDisconnected(const QString &uid)
|
||||
|
||||
void IosDeviceManager::updateInfo(const QString &devId)
|
||||
{
|
||||
IosToolHandler *requester = new IosToolHandler(IosDeviceType(), this);
|
||||
IosToolHandler *requester = new IosToolHandler(IosDeviceType(IosDeviceType::IosDevice), this);
|
||||
connect(requester, SIGNAL(deviceInfo(Ios::IosToolHandler*,QString,Ios::IosToolHandler::Dict)),
|
||||
SLOT(deviceInfo(Ios::IosToolHandler*,QString,Ios::IosToolHandler::Dict)), Qt::QueuedConnection);
|
||||
connect(requester, SIGNAL(finished(Ios::IosToolHandler*)),
|
||||
|
||||
@@ -162,7 +162,7 @@ QStringList IosRunConfiguration::commandLineArguments()
|
||||
void IosRunConfiguration::updateDisplayNames()
|
||||
{
|
||||
if (DeviceTypeKitInformation::deviceTypeId(target()->kit()) == Constants::IOS_DEVICE_TYPE)
|
||||
m_deviceType = IosDeviceType();
|
||||
m_deviceType = IosDeviceType(IosDeviceType::IosDevice);
|
||||
else if (m_deviceType.type == IosDeviceType::IosDevice)
|
||||
m_deviceType = IosDeviceType(IosDeviceType::SimulatedDevice);
|
||||
IDevice::ConstPtr dev = DeviceKitInformation::device(target()->kit());
|
||||
@@ -474,8 +474,10 @@ void IosRunConfigurationWidget::updateValues()
|
||||
QString argsString = argListToString(args);
|
||||
|
||||
IosDeviceType currentDType = m_runConfiguration->deviceType();
|
||||
if (!m_ui->deviceTypeComboBox->currentData().isValid()
|
||||
|| currentDType != m_ui->deviceTypeComboBox->currentData().value<IosDeviceType>()) {
|
||||
if (currentDType.type == IosDeviceType::SimulatedDevice && !currentDType.identifier.isEmpty()
|
||||
&& (!m_ui->deviceTypeComboBox->currentData().isValid()
|
||||
|| currentDType != m_ui->deviceTypeComboBox->currentData().value<IosDeviceType>()))
|
||||
{
|
||||
bool didSet = false;
|
||||
for (int i = 0; m_deviceTypeModel.hasIndex(i, 0); ++i) {
|
||||
QVariant vData = m_deviceTypeModel.data(m_deviceTypeModel.index(i, 0), Qt::UserRole + 1);
|
||||
|
||||
@@ -286,7 +286,8 @@ void IosToolHandlerPrivate::stop(int errorCode)
|
||||
return;
|
||||
}
|
||||
if (process.state() != QProcess::NotRunning) {
|
||||
process.terminate();
|
||||
process.write("k\n\r");
|
||||
process.closeWriteChannel();
|
||||
killTimer.start(1500);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user