~ubuntu-sdk-team/qtcreator-plugin-remotelinux/trunk

« back to all changes in this revision

Viewing changes to src/remotelinux/abstractremotelinuxdeployservice.cpp

  • Committer: CI bot
  • Author(s): Benjamin Zeller
  • Date: 2014-06-16 10:28:43 UTC
  • mfrom: (4.2.4 remotelinux)
  • Revision ID: ps-jenkins@lists.canonical.com-20140616102843-8juvmjvzwlzsboyw
Migrating to Qt5.3 and QtC 3.1 

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
    d->deviceConfiguration = DeviceKitInformation::device(d->kit);
163
163
}
164
164
 
 
165
void AbstractRemoteLinuxDeployService::setDevice(const IDevice::ConstPtr &device)
 
166
{
 
167
    d->deviceConfiguration = device;
 
168
}
 
169
 
165
170
void AbstractRemoteLinuxDeployService::start()
166
171
{
167
172
    QTC_ASSERT(d->state == Inactive, return);
309
314
        break;
310
315
    case Connecting: {
311
316
        QString errorMsg = tr("Could not connect to host: %1").arg(d->connection->errorString());
 
317
        errorMsg += QLatin1Char('\n');
312
318
        if (deviceConfiguration()->machineType() == IDevice::Emulator)
313
 
            errorMsg += tr("\nDid the emulator fail to start?");
 
319
            errorMsg += tr("Did the emulator fail to start?");
314
320
        else
315
 
            errorMsg += tr("\nIs the device connected and set up for network access?");
 
321
            errorMsg += tr("Is the device connected and set up for network access?");
316
322
        emit errorMessage(errorMsg);
317
323
        setFinished();
318
324
        break;