Merge lp:~zeller-benjamin/qtcreator-plugin-ubuntu/js-scopes-support into lp:qtcreator-plugin-ubuntu

Proposed by Benjamin Zeller
Status: Merged
Approved by: Zoltan Balogh
Approved revision: 442
Merged at revision: 440
Proposed branch: lp:~zeller-benjamin/qtcreator-plugin-ubuntu/js-scopes-support
Merge into: lp:qtcreator-plugin-ubuntu
Diff against target: 61 lines (+14/-4)
4 files modified
src/ubuntu/ubuntupackagingmodel.cpp (+3/-0)
src/ubuntu/ubunturemoterunconfiguration.cpp (+4/-3)
src/ubuntu/ubunturemoteruncontrolfactory.cpp (+5/-0)
src/ubuntu/ubuntuwaitfordevicedialog.cpp (+2/-1)
To merge this branch: bzr merge lp:~zeller-benjamin/qtcreator-plugin-ubuntu/js-scopes-support
Reviewer Review Type Date Requested Status
Zoltan Balogh Approve
ubuntu-sdk-build-bot continuous-integration Approve
Review via email: mp+285464@code.launchpad.net

Commit message

- Fix Bug lp:1537550 "Manifest changes are not saved before publishing
regardless of setting"
- Fix Bug lp:1534509 "Please attach your device - which one?"
- Add support for executing custom scope runners on the phone

Description of the change

- Fix Bug lp:1537550 "Manifest changes are not saved before publishing
regardless of setting"
- Fix Bug lp:1534509 "Please attach your device - which one?"
- Add support for executing custom scope runners on the phone

To post a comment you must log in.
441. By Benjamin Zeller

Add bug

442. By Benjamin Zeller

Remove debug output

Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

OK

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/ubuntu/ubuntupackagingmodel.cpp'
2--- src/ubuntu/ubuntupackagingmodel.cpp 2015-09-01 11:47:03 +0000
3+++ src/ubuntu/ubuntupackagingmodel.cpp 2016-02-09 12:10:57 +0000
4@@ -427,6 +427,9 @@
5 return;
6 }
7
8+ if(!ProjectExplorer::ProjectExplorerPlugin::instance()->saveModifiedFiles())
9+ return;
10+
11 QString mimeType = project->projectManager()->mimeType();
12 bool isCMake = mimeType == QLatin1String(CMakeProjectManager::Constants::CMAKEPROJECTMIMETYPE);
13 bool isHtml = mimeType == QLatin1String(Ubuntu::Constants::UBUNTUPROJECT_MIMETYPE);
14
15=== modified file 'src/ubuntu/ubunturemoterunconfiguration.cpp'
16--- src/ubuntu/ubunturemoterunconfiguration.cpp 2015-09-09 10:01:09 +0000
17+++ src/ubuntu/ubunturemoterunconfiguration.cpp 2016-02-09 12:10:57 +0000
18@@ -390,9 +390,10 @@
19 m_arguments = args;
20 return true;
21 } else {
22- if(errorMessage)
23- *errorMessage = tr("Using a custom scopelauncher is not yet supported");
24- return false;
25+ //no debug support for custom scoperunners
26+ m_localExecutable = QString();
27+ m_remoteExecutable = executable;
28+ return true;
29 }
30 }
31
32
33=== modified file 'src/ubuntu/ubunturemoteruncontrolfactory.cpp'
34--- src/ubuntu/ubunturemoteruncontrolfactory.cpp 2015-07-14 13:18:00 +0000
35+++ src/ubuntu/ubunturemoteruncontrolfactory.cpp 2016-02-09 12:10:57 +0000
36@@ -89,6 +89,11 @@
37
38 if(debug) qDebug()<<"Free ports on the device: "<<dev->freePorts().count();
39
40+ if (rc->localExecutableFilePath().isEmpty()) {
41+ if (errorMessage) *errorMessage = tr("The current project has no support for running in a debugger.");
42+ return 0;
43+ }
44+
45 if (2 > dev->freePorts().count()) {
46 *errorMessage = tr("Cannot debug: Not enough free ports available.");
47 return 0;
48
49=== modified file 'src/ubuntu/ubuntuwaitfordevicedialog.cpp'
50--- src/ubuntu/ubuntuwaitfordevicedialog.cpp 2014-08-06 11:47:54 +0000
51+++ src/ubuntu/ubuntuwaitfordevicedialog.cpp 2016-02-09 12:10:57 +0000
52@@ -54,7 +54,8 @@
53 switch (m_dev->deviceState()) {
54 case ProjectExplorer::IDevice::DeviceDisconnected:
55 case ProjectExplorer::IDevice::DeviceStateUnknown:
56- setLabelText(isEmulator ? tr("Please start your emulator") : tr("Please attach your device"));
57+ setLabelText(isEmulator ? tr("Please start your emulator: %1").arg(m_dev->displayName())
58+ : tr("Please attach your device: %1").arg(m_dev->displayName()));
59 break;
60 case ProjectExplorer::IDevice::DeviceConnected:
61 setLabelText(tr("Waiting for your %1 to get ready").arg(isEmulator ? tr("emulator") : tr("device")));

Subscribers

People subscribed via source and target branches