Merge lp:~zeller-benjamin/qtcreator-plugin-ubuntu/bughunt-201506 into lp:qtcreator-plugin-ubuntu

Proposed by Benjamin Zeller
Status: Merged
Approved by: Zoltan Balogh
Approved revision: 398
Merged at revision: 404
Proposed branch: lp:~zeller-benjamin/qtcreator-plugin-ubuntu/bughunt-201506
Merge into: lp:qtcreator-plugin-ubuntu
Diff against target: 887 lines (+241/-239)
23 files modified
share/qtcreator/templates/wizards/ubuntu/backend-app-cmake/wizard.xml (+19/-19)
share/qtcreator/templates/wizards/ubuntu/backend-app-qmake/wizard.xml (+30/-30)
share/qtcreator/templates/wizards/ubuntu/goproject/wizard.xml (+1/-1)
share/qtcreator/templates/wizards/ubuntu/html5-simple/wizard.xml (+1/-1)
share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/wizard.xml (+31/-31)
share/qtcreator/templates/wizards/ubuntu/scope/wizard.xml (+1/-1)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/wizard.xml (+31/-31)
share/qtcreator/templates/wizards/ubuntu/simple-app-qmlproject/wizard.xml (+32/-32)
share/qtcreator/templates/wizards/ubuntu/simple-i18n-cmake/wizard.xml (+30/-30)
share/qtcreator/templates/wizards/ubuntu/webapp/wizard.xml (+1/-1)
src/ubuntu/ubuntu.pro (+1/-1)
src/ubuntu/ubuntuclickdialog.cpp (+2/-2)
src/ubuntu/ubuntuclickdialog.h (+1/-1)
src/ubuntu/ubuntuclickmanifest.cpp (+31/-38)
src/ubuntu/ubuntuclickmanifest.h (+5/-8)
src/ubuntu/ubuntucreatenewchrootdialog.cpp (+8/-4)
src/ubuntu/ubuntucreatenewchrootdialog.h (+2/-2)
src/ubuntu/ubuntukitmanager.cpp (+1/-1)
src/ubuntu/ubuntupackagingmodel.cpp (+0/-1)
src/ubuntu/ubuntuplugin.cpp (+10/-0)
src/ubuntu/ubuntusettingsclickwidget.cpp (+1/-2)
src/ubuntu/wizards/ubuntufirstrunwizard.cpp (+1/-1)
tests/manifest/manifest.pro (+1/-1)
To merge this branch: bzr merge lp:~zeller-benjamin/qtcreator-plugin-ubuntu/bughunt-201506
Reviewer Review Type Date Requested Status
Zoltan Balogh Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+261541@code.launchpad.net

Commit message

- Remove QtScript dependency from the manifest.json parser
- Fix Bug lp:1461026 "Kits creation for a project should match targeted framework"
- Fix Bug lp:1461014 "Match application name to click package name"
- Fix Bug lp:1461019 "Default in project creation dialog should be a qmake project"
- Fix Bug lp:1340061: "Some dialogs have unreadable (too small) text"

Description of the change

- Remove QtScript dependency from the manifest.json parser
- Fix Bug lp:1461026 "Kits creation for a project should match targeted framework"
- Fix Bug lp:1461014 "Match application name to click package name"
- Fix Bug lp:1461019 "Default in project creation dialog should be a qmake project"

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

OK

review: Approve
399. By Benjamin Zeller

Merge trunk

400. By Benjamin Zeller

Fix Bug lp:1340061 "Some dialogs have unreadable (too small) text

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'share/qtcreator/templates/wizards/ubuntu/backend-app-cmake/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/backend-app-cmake/wizard.xml 2015-05-26 09:46:32 +0000
+++ share/qtcreator/templates/wizards/ubuntu/backend-app-cmake/wizard.xml 2015-06-17 14:03:08 +0000
@@ -38,25 +38,25 @@
38 <file source="app/Main.qml" target="app/Main.qml" openeditor="true"/>38 <file source="app/Main.qml" target="app/Main.qml" openeditor="true"/>
39 <file source="po/CMakeLists.txt" target="po/CMakeLists.txt" openeditor="false"/>39 <file source="po/CMakeLists.txt" target="po/CMakeLists.txt" openeditor="false"/>
40 </files>40 </files>
4141
42 <!-- Create a 2nd wizard page with click package parameters -->42 <!-- Create a 2nd wizard page with click package parameters -->
43 <fieldpagetitle>Click package parameters</fieldpagetitle>43 <fieldpagetitle>Click package parameters</fieldpagetitle>
44 <fields>44 <fields>
45 <field mandatory="true" name="ClickDomain">45 <field mandatory="true" name="ClickDomain">
46 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'46 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
47 defaulttext="" placeholdertext="Nickname"/>47 defaulttext="" placeholdertext="Nickname"/>
48 <fielddescription>Nickname:</fielddescription>48 <fielddescription>Nickname:</fielddescription>
49 </field>49 </field>
50 <field mandatory="true" name="ClickMaintainer">50 <field mandatory="true" name="ClickMaintainer">
51 <fieldcontrol class="QLineEdit" validator='^[^"]+$'51 <fieldcontrol class="QLineEdit" validator='^[^"]+$'
52 defaulttext="" placeholdertext="Maintainer"/>52 defaulttext="" placeholdertext="Maintainer"/>
53 <fielddescription>Maintainer:</fielddescription>53 <fielddescription>Maintainer:</fielddescription>
54 </field>54 </field>
55 <field mandatory="true" name="ClickHookName">55 <field mandatory="true" name="ClickHookName">
56 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'56 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
57 defaulttext="myapp" placeholdertext="app hook name"/>57 defaulttext="%ProjectName%" placeholdertext="app hook name"/>
58 <fielddescription>App name:</fielddescription>58 <fielddescription>App name:</fielddescription>
59 </field>59 </field>
60 <field name="ClickFrameworkVersion">60 <field name="ClickFrameworkVersion">
61 <fieldcontrol class="QComboBox" defaultindex="0">61 <fieldcontrol class="QComboBox" defaultindex="0">
62 <comboentries>62 <comboentries>
6363
=== modified file 'share/qtcreator/templates/wizards/ubuntu/backend-app-qmake/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/backend-app-qmake/wizard.xml 2015-05-26 09:46:32 +0000
+++ share/qtcreator/templates/wizards/ubuntu/backend-app-qmake/wizard.xml 2015-06-17 14:03:08 +0000
@@ -40,36 +40,36 @@
40 <file source="backend/tests/unit/tst_mytype.qml" target="backend/tests/unit/tst_mytype.qml" openeditor="false"/>40 <file source="backend/tests/unit/tst_mytype.qml" target="backend/tests/unit/tst_mytype.qml" openeditor="false"/>
41 </files>41 </files>
4242
43 <!-- Create a 2nd wizard page with click package parameters -->43 <!-- Create a 2nd wizard page with click package parameters -->
44 <fieldpagetitle>Click package parameters</fieldpagetitle>44 <fieldpagetitle>Click package parameters</fieldpagetitle>
45 <fields>45 <fields>
46 <field mandatory="true" name="ClickDomain">46 <field mandatory="true" name="ClickDomain">
47 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'47 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
48 defaulttext="" placeholdertext="Nickname"/>48 defaulttext="" placeholdertext="Nickname"/>
49 <fielddescription>Nickname:</fielddescription>49 <fielddescription>Nickname:</fielddescription>
50 </field>50 </field>
51 <field mandatory="true" name="ClickMaintainer">51 <field mandatory="true" name="ClickMaintainer">
52 <fieldcontrol class="QLineEdit" validator='^[^"]+$'52 <fieldcontrol class="QLineEdit" validator='^[^"]+$'
53 defaulttext="" placeholdertext="Maintainer"/>53 defaulttext="" placeholdertext="Maintainer"/>
54 <fielddescription>Maintainer:</fielddescription>54 <fielddescription>Maintainer:</fielddescription>
55 </field>55 </field>
56 <field mandatory="true" name="ClickHookName">56 <field mandatory="true" name="ClickHookName">
57 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'57 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
58 defaulttext="app" placeholdertext="app hook name"/>58 defaulttext="%ProjectName%" placeholdertext="app hook name"/>
59 <fielddescription>App name:</fielddescription>59 <fielddescription>App name:</fielddescription>
60 </field>60 </field>
61 <field name="ClickFrameworkVersion">61 <field name="ClickFrameworkVersion">
62 <fieldcontrol class="QComboBox" defaultindex="0">62 <fieldcontrol class="QComboBox" defaultindex="0">
63 <comboentries>63 <comboentries>
64 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->64 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->
65 <comboentry value="ubuntu-sdk-dummy-framework">65 <comboentry value="ubuntu-sdk-dummy-framework">
66 <comboentrytext>Dummy Framework</comboentrytext>66 <comboentrytext>Dummy Framework</comboentrytext>
67 </comboentry>67 </comboentry>
68 </comboentries>68 </comboentries>
69 </fieldcontrol>69 </fieldcontrol>
70 <fielddescription>Framework:</fielddescription>70 <fielddescription>Framework:</fielddescription>
71 </field>71 </field>
72 </fields>72 </fields>
73 <validationrules>73 <validationrules>
74 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>74 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>
75 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>75 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>
7676
=== modified file 'share/qtcreator/templates/wizards/ubuntu/goproject/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/goproject/wizard.xml 2015-01-20 19:19:41 +0000
+++ share/qtcreator/templates/wizards/ubuntu/goproject/wizard.xml 2015-06-17 14:03:08 +0000
@@ -33,7 +33,7 @@
33 </field>33 </field>
34 <field mandatory="true" name="ClickHookName">34 <field mandatory="true" name="ClickHookName">
35 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'35 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
36 defaulttext="myapp" placeholdertext="app hook name"/>36 defaulttext="%ProjectName%" placeholdertext="app hook name"/>
37 <fielddescription>App name:</fielddescription>37 <fielddescription>App name:</fielddescription>
38 </field>38 </field>
39 <field name="ClickFrameworkVersion">39 <field name="ClickFrameworkVersion">
4040
=== modified file 'share/qtcreator/templates/wizards/ubuntu/html5-simple/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/html5-simple/wizard.xml 2015-04-14 18:32:00 +0000
+++ share/qtcreator/templates/wizards/ubuntu/html5-simple/wizard.xml 2015-06-17 14:03:08 +0000
@@ -58,7 +58,7 @@
58 </field>58 </field>
59 <field mandatory="true" name="ClickHookName">59 <field mandatory="true" name="ClickHookName">
60 <fieldcontrol class="QLineEdit" validator='^[^"]+$'60 <fieldcontrol class="QLineEdit" validator='^[^"]+$'
61 defaulttext="app" placeholdertext="app hook name"/>61 defaulttext="%ProjectName%" placeholdertext="app hook name"/>
62 <fielddescription>App name:</fielddescription>62 <fielddescription>App name:</fielddescription>
63 </field>63 </field>
64 <field name="ClickFrameworkVersion">64 <field name="ClickFrameworkVersion">
6565
=== modified file 'share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/wizard.xml 2015-05-26 09:46:32 +0000
+++ share/qtcreator/templates/wizards/ubuntu/qtquick-app-qmake/wizard.xml 2015-06-17 14:03:08 +0000
@@ -32,37 +32,37 @@
32 <file source="appName/tests/autopilot/displayName/tests/__init__.py" target="%ClickHookName%/tests/autopilot/%ProjectName%/tests/__init__.py" openeditor="false"/>32 <file source="appName/tests/autopilot/displayName/tests/__init__.py" target="%ClickHookName%/tests/autopilot/%ProjectName%/tests/__init__.py" openeditor="false"/>
33 <file source="appName/tests/unit/tst_main.qml" target="%ClickHookName%/tests/unit/tst_main.qml" openeditor="false"/>33 <file source="appName/tests/unit/tst_main.qml" target="%ClickHookName%/tests/unit/tst_main.qml" openeditor="false"/>
34 </files>34 </files>
3535
36 <!-- Create a 2nd wizard page with click package parameters -->36 <!-- Create a 2nd wizard page with click package parameters -->
37 <fieldpagetitle>Click package parameters</fieldpagetitle>37 <fieldpagetitle>Click package parameters</fieldpagetitle>
38 <fields>38 <fields>
39 <field mandatory="true" name="ClickDomain">39 <field mandatory="true" name="ClickDomain">
40 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'40 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
41 defaulttext="" placeholdertext="Nickname"/>41 defaulttext="" placeholdertext="Nickname"/>
42 <fielddescription>Nickname:</fielddescription>42 <fielddescription>Nickname:</fielddescription>
43 </field>43 </field>
44 <field mandatory="true" name="ClickMaintainer">44 <field mandatory="true" name="ClickMaintainer">
45 <fieldcontrol class="QLineEdit" validator='^[^"]+$'45 <fieldcontrol class="QLineEdit" validator='^[^"]+$'
46 defaulttext="" placeholdertext="Maintainer"/>46 defaulttext="" placeholdertext="Maintainer"/>
47 <fielddescription>Maintainer:</fielddescription>47 <fielddescription>Maintainer:</fielddescription>
48 </field>48 </field>
49 <field mandatory="true" name="ClickHookName">49 <field mandatory="true" name="ClickHookName">
50 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'50 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
51 defaulttext="app" placeholdertext="app hook name"/>51 defaulttext="%ProjectName%" placeholdertext="app hook name"/>
52 <fielddescription>App name:</fielddescription>52 <fielddescription>App name:</fielddescription>
53 </field>53 </field>
54 <field name="ClickFrameworkVersion">54 <field name="ClickFrameworkVersion">
55 <fieldcontrol class="QComboBox" defaultindex="0">55 <fieldcontrol class="QComboBox" defaultindex="0">
56 <comboentries>56 <comboentries>
57 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->57 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->
58 <comboentry value="ubuntu-sdk-dummy-framework">58 <comboentry value="ubuntu-sdk-dummy-framework">
59 <comboentrytext>Dummy Framework</comboentrytext>59 <comboentrytext>Dummy Framework</comboentrytext>
60 </comboentry>60 </comboentry>
61 </comboentries>61 </comboentries>
62 </fieldcontrol>62 </fieldcontrol>
63 <fielddescription>Framework:</fielddescription>63 <fielddescription>Framework:</fielddescription>
64 </field>64 </field>
65 </fields>65 </fields>
66 <validationrules>66 <validationrules>
67 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>67 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>
68 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>68 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>
6969
=== modified file 'share/qtcreator/templates/wizards/ubuntu/scope/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/scope/wizard.xml 2015-06-11 10:03:53 +0000
+++ share/qtcreator/templates/wizards/ubuntu/scope/wizard.xml 2015-06-17 14:03:08 +0000
@@ -64,7 +64,7 @@
64 </field>64 </field>
65 <field mandatory="true" name="ClickHookName">65 <field mandatory="true" name="ClickHookName">
66 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'66 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
67 defaulttext="myscope" placeholdertext="scope hook name"/>67 defaulttext="%ProjectName%" placeholdertext="scope hook name"/>
68 <fielddescription>Scope name:</fielddescription>68 <fielddescription>Scope name:</fielddescription>
69 </field>69 </field>
70 <field name="ClickFrameworkVersion">70 <field name="ClickFrameworkVersion">
7171
=== modified file 'share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/wizard.xml 2015-05-26 09:46:32 +0000
+++ share/qtcreator/templates/wizards/ubuntu/simple-app-qmake/wizard.xml 2015-06-17 14:03:08 +0000
@@ -27,37 +27,37 @@
27 <file source="appName/tests/autopilot/displayName/tests/__init__.py" target="%ClickHookName%/tests/autopilot/%ProjectName%/tests/__init__.py" openeditor="false"/>27 <file source="appName/tests/autopilot/displayName/tests/__init__.py" target="%ClickHookName%/tests/autopilot/%ProjectName%/tests/__init__.py" openeditor="false"/>
28 <file source="appName/tests/unit/tst_main.qml" target="%ClickHookName%/tests/unit/tst_main.qml" openeditor="false"/>28 <file source="appName/tests/unit/tst_main.qml" target="%ClickHookName%/tests/unit/tst_main.qml" openeditor="false"/>
29 </files>29 </files>
3030
31 <!-- Create a 2nd wizard page with click package parameters -->31 <!-- Create a 2nd wizard page with click package parameters -->
32 <fieldpagetitle>Click package parameters</fieldpagetitle>32 <fieldpagetitle>Click package parameters</fieldpagetitle>
33 <fields>33 <fields>
34 <field mandatory="true" name="ClickDomain">34 <field mandatory="true" name="ClickDomain">
35 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'35 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
36 defaulttext="" placeholdertext="Nickname"/>36 defaulttext="" placeholdertext="Nickname"/>
37 <fielddescription>Nickname:</fielddescription>37 <fielddescription>Nickname:</fielddescription>
38 </field>38 </field>
39 <field mandatory="true" name="ClickMaintainer">39 <field mandatory="true" name="ClickMaintainer">
40 <fieldcontrol class="QLineEdit" validator='^[^"]+$'40 <fieldcontrol class="QLineEdit" validator='^[^"]+$'
41 defaulttext="" placeholdertext="Maintainer"/>41 defaulttext="" placeholdertext="Maintainer"/>
42 <fielddescription>Maintainer:</fielddescription>42 <fielddescription>Maintainer:</fielddescription>
43 </field>43 </field>
44 <field mandatory="true" name="ClickHookName">44 <field mandatory="true" name="ClickHookName">
45 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'45 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
46 defaulttext="app" placeholdertext="app hook name"/>46 defaulttext="%ProjectName%" placeholdertext="app hook name"/>
47 <fielddescription>App name:</fielddescription>47 <fielddescription>App name:</fielddescription>
48 </field>48 </field>
49 <field name="ClickFrameworkVersion">49 <field name="ClickFrameworkVersion">
50 <fieldcontrol class="QComboBox" defaultindex="0">50 <fieldcontrol class="QComboBox" defaultindex="0">
51 <comboentries>51 <comboentries>
52 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->52 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->
53 <comboentry value="ubuntu-sdk-dummy-framework">53 <comboentry value="ubuntu-sdk-dummy-framework">
54 <comboentrytext>Dummy Framework</comboentrytext>54 <comboentrytext>Dummy Framework</comboentrytext>
55 </comboentry>55 </comboentry>
56 </comboentries>56 </comboentries>
57 </fieldcontrol>57 </fieldcontrol>
58 <fielddescription>Framework:</fielddescription>58 <fielddescription>Framework:</fielddescription>
59 </field>59 </field>
60 </fields>60 </fields>
61 <validationrules>61 <validationrules>
62 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>62 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>
63 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>63 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>
6464
=== modified file 'share/qtcreator/templates/wizards/ubuntu/simple-app-qmlproject/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/simple-app-qmlproject/wizard.xml 2015-05-15 16:57:22 +0000
+++ share/qtcreator/templates/wizards/ubuntu/simple-app-qmlproject/wizard.xml 2015-06-17 14:03:08 +0000
@@ -1,6 +1,6 @@
1<?xml version="1.0" encoding="UTF-8"?>1<?xml version="1.0" encoding="UTF-8"?>
2<wizard version="1" kind="project" firstpage="10" id="A1_UbuntuAppSimple'" category="A.UbuntuProject"2<wizard version="1" kind="project" firstpage="10" id="A3_UbuntuAppSimple'" category="A.UbuntuProject"
3 platformIndependent="true"3 platformIndependent="true"
4 class="ubuntu-project-plain-qml"4 class="ubuntu-project-plain-qml"
5 featuresRequired=""5 featuresRequired=""
6 >6 >
@@ -25,36 +25,36 @@
25 <file source="../share/.excludes" target=".excludes" openeditor="false"/>25 <file source="../share/.excludes" target=".excludes" openeditor="false"/>
26 </files>26 </files>
2727
28 <!-- Create a 2nd wizard page with click package parameters -->28 <!-- Create a 2nd wizard page with click package parameters -->
29 <fieldpagetitle>Click package parameters</fieldpagetitle>29 <fieldpagetitle>Click package parameters</fieldpagetitle>
30 <fields>30 <fields>
31 <field mandatory="true" name="ClickDomain">31 <field mandatory="true" name="ClickDomain">
32 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'32 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
33 defaulttext="" placeholdertext="Nickname"/>33 defaulttext="" placeholdertext="Nickname"/>
34 <fielddescription>Nickname:</fielddescription>34 <fielddescription>Nickname:</fielddescription>
35 </field>35 </field>
36 <field mandatory="true" name="ClickMaintainer">36 <field mandatory="true" name="ClickMaintainer">
37 <fieldcontrol class="QLineEdit" validator='^[^"]+$'37 <fieldcontrol class="QLineEdit" validator='^[^"]+$'
38 defaulttext="" placeholdertext="Maintainer"/>38 defaulttext="" placeholdertext="Maintainer"/>
39 <fielddescription>Maintainer:</fielddescription>39 <fielddescription>Maintainer:</fielddescription>
40 </field>40 </field>
41 <field mandatory="true" name="ClickHookName">41 <field mandatory="true" name="ClickHookName">
42 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'42 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
43 defaulttext="app" placeholdertext="app hook name"/>43 defaulttext="%ProjectName%" placeholdertext="app hook name"/>
44 <fielddescription>App name:</fielddescription>44 <fielddescription>App name:</fielddescription>
45 </field>45 </field>
46 <field name="ClickFrameworkVersion">46 <field name="ClickFrameworkVersion">
47 <fieldcontrol class="QComboBox" defaultindex="0">47 <fieldcontrol class="QComboBox" defaultindex="0">
48 <comboentries>48 <comboentries>
49 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->49 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->
50 <comboentry value="ubuntu-sdk-dummy-framework">50 <comboentry value="ubuntu-sdk-dummy-framework">
51 <comboentrytext>Dummy Framework</comboentrytext>51 <comboentrytext>Dummy Framework</comboentrytext>
52 </comboentry>52 </comboentry>
53 </comboentries>53 </comboentries>
54 </fieldcontrol>54 </fieldcontrol>
55 <fielddescription>Framework:</fielddescription>55 <fielddescription>Framework:</fielddescription>
56 </field>56 </field>
57 </fields>57 </fields>
58 <validationrules>58 <validationrules>
59 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>59 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>
60 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>60 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>
6161
=== modified file 'share/qtcreator/templates/wizards/ubuntu/simple-i18n-cmake/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/simple-i18n-cmake/wizard.xml 2015-05-26 09:46:32 +0000
+++ share/qtcreator/templates/wizards/ubuntu/simple-i18n-cmake/wizard.xml 2015-06-17 14:03:08 +0000
@@ -26,36 +26,36 @@
26 <file source="po/CMakeLists.txt" target="po/CMakeLists.txt" openeditor="false"/>26 <file source="po/CMakeLists.txt" target="po/CMakeLists.txt" openeditor="false"/>
27 </files>27 </files>
2828
29 <!-- Create a 2nd wizard page with click package parameters -->29 <!-- Create a 2nd wizard page with click package parameters -->
30 <fieldpagetitle>Click package parameters</fieldpagetitle>30 <fieldpagetitle>Click package parameters</fieldpagetitle>
31 <fields>31 <fields>
32 <field mandatory="true" name="ClickDomain">32 <field mandatory="true" name="ClickDomain">
33 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'33 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
34 defaulttext="" placeholdertext="Nickname"/>34 defaulttext="" placeholdertext="Nickname"/>
35 <fielddescription>Nickname:</fielddescription>35 <fielddescription>Nickname:</fielddescription>
36 </field>36 </field>
37 <field mandatory="true" name="ClickMaintainer">37 <field mandatory="true" name="ClickMaintainer">
38 <fieldcontrol class="QLineEdit" validator='^[^"]+$'38 <fieldcontrol class="QLineEdit" validator='^[^"]+$'
39 defaulttext="" placeholdertext="Maintainer"/>39 defaulttext="" placeholdertext="Maintainer"/>
40 <fielddescription>Maintainer:</fielddescription>40 <fielddescription>Maintainer:</fielddescription>
41 </field>41 </field>
42 <field mandatory="true" name="ClickHookName">42 <field mandatory="true" name="ClickHookName">
43 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'43 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
44 defaulttext="myapp" placeholdertext="app hook name"/>44 defaulttext="%ProjectName%" placeholdertext="app hook name"/>
45 <fielddescription>App name:</fielddescription>45 <fielddescription>App name:</fielddescription>
46 </field>46 </field>
47 <field name="ClickFrameworkVersion">47 <field name="ClickFrameworkVersion">
48 <fieldcontrol class="QComboBox" defaultindex="0">48 <fieldcontrol class="QComboBox" defaultindex="0">
49 <comboentries>49 <comboentries>
50 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->50 <!-- Do not add any other frameworks here, they are populated at runtime, this is just a dummy framework to make sure we can find the combobox -->
51 <comboentry value="ubuntu-sdk-dummy-framework">51 <comboentry value="ubuntu-sdk-dummy-framework">
52 <comboentrytext>Dummy Framework</comboentrytext>52 <comboentrytext>Dummy Framework</comboentrytext>
53 </comboentry>53 </comboentry>
54 </comboentries>54 </comboentries>
55 </fieldcontrol>55 </fieldcontrol>
56 <fielddescription>Framework:</fielddescription>56 <fielddescription>Framework:</fielddescription>
57 </field>57 </field>
58 </fields>58 </fields>
59 <validationrules>59 <validationrules>
60 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>60 <validationrule condition='/^(.*)\s+&lt;(.*@.*)&gt;$/.test("%ClickMaintainer%")'>
61 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>61 <message>Invalid format for maintainer (should be like "Joe Bloggs &lt;joe.bloggs@isp.com&gt;")</message>
6262
=== modified file 'share/qtcreator/templates/wizards/ubuntu/webapp/wizard.xml'
--- share/qtcreator/templates/wizards/ubuntu/webapp/wizard.xml 2015-01-07 10:50:28 +0000
+++ share/qtcreator/templates/wizards/ubuntu/webapp/wizard.xml 2015-06-17 14:03:08 +0000
@@ -26,7 +26,7 @@
26 <fielddescription>Maintainer:</fielddescription>26 <fielddescription>Maintainer:</fielddescription>
27 </field>27 </field>
28 <field mandatory="true" name="ClickHookName">28 <field mandatory="true" name="ClickHookName">
29 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$' defaulttext="app" placeholdertext="app hook name"/>29 <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$' defaulttext="%ProjectName%" placeholdertext="app hook name"/>
30 <fielddescription>App name:</fielddescription>30 <fielddescription>App name:</fielddescription>
31 </field>31 </field>
32 <field name="ClickFrameworkVersion">32 <field name="ClickFrameworkVersion">
3333
=== modified file 'src/ubuntu/ubuntu.pro'
--- src/ubuntu/ubuntu.pro 2015-02-16 12:27:25 +0000
+++ src/ubuntu/ubuntu.pro 2015-06-17 14:03:08 +0000
@@ -1,4 +1,4 @@
1QT += network qml quick webkitwidgets script scripttools dbus1QT += network qml quick webkitwidgets dbus
22
3include(../plugin.pri)3include(../plugin.pri)
44
55
=== modified file 'src/ubuntu/ubuntuclickdialog.cpp'
--- src/ubuntu/ubuntuclickdialog.cpp 2015-02-19 23:46:50 +0000
+++ src/ubuntu/ubuntuclickdialog.cpp 2015-06-17 14:03:08 +0000
@@ -92,11 +92,11 @@
92 return dlg.m_exitCode;92 return dlg.m_exitCode;
93}93}
9494
95bool UbuntuClickDialog::createClickChrootModal(bool redetectKits, const QString &arch, QWidget *parent)95bool UbuntuClickDialog::createClickChrootModal(bool redetectKits, const QString &arch, const QString &framework, QWidget *parent)
96{96{
9797
98 UbuntuClickTool::Target t;98 UbuntuClickTool::Target t;
99 if(!UbuntuCreateNewChrootDialog::getNewChrootTarget(&t,arch,parent))99 if(!UbuntuCreateNewChrootDialog::getNewChrootTarget(&t,arch,framework,parent))
100 return false;100 return false;
101101
102 ProjectExplorer::ProcessParameters params;102 ProjectExplorer::ProcessParameters params;
103103
=== modified file 'src/ubuntu/ubuntuclickdialog.h'
--- src/ubuntu/ubuntuclickdialog.h 2015-01-30 12:20:51 +0000
+++ src/ubuntu/ubuntuclickdialog.h 2015-06-17 14:03:08 +0000
@@ -53,7 +53,7 @@
5353
54 static int runClickModal(const ProjectExplorer::ProcessParameters &params, QWidget *parent = 0);54 static int runClickModal(const ProjectExplorer::ProcessParameters &params, QWidget *parent = 0);
55 static int runClickModal (const QList<ProjectExplorer::ProcessParameters> &params, QWidget *parent = 0);55 static int runClickModal (const QList<ProjectExplorer::ProcessParameters> &params, QWidget *parent = 0);
56 static bool createClickChrootModal (bool redetectKits = true , const QString &arch = QString(),QWidget *parent = 0);56 static bool createClickChrootModal (bool redetectKits = true , const QString &arch = QString(), const QString &framework = QString(), QWidget *parent = 0);
5757
58 static int maintainClickModal (const UbuntuClickTool::Target &target, const UbuntuClickTool::MaintainMode &mode);58 static int maintainClickModal (const UbuntuClickTool::Target &target, const UbuntuClickTool::MaintainMode &mode);
59 static int maintainClickModal (const QList<UbuntuClickTool::Target> &targetList, const UbuntuClickTool::MaintainMode &mode);59 static int maintainClickModal (const QList<UbuntuClickTool::Target> &targetList, const UbuntuClickTool::MaintainMode &mode);
6060
=== modified file 'src/ubuntu/ubuntuclickmanifest.cpp'
--- src/ubuntu/ubuntuclickmanifest.cpp 2015-01-13 09:55:54 +0000
+++ src/ubuntu/ubuntuclickmanifest.cpp 2015-06-17 14:03:08 +0000
@@ -22,13 +22,13 @@
22#include "ubuntushared.h"22#include "ubuntushared.h"
2323
24#include <QFile>24#include <QFile>
25#include <QtScriptTools/QScriptEngineDebugger>
26#include <QJsonDocument>25#include <QJsonDocument>
27#include <QProcess>26#include <QProcess>
28#include <QDebug>27#include <QDebug>
29#include <QMainWindow>28#include <QMainWindow>
30#include <QAction>29#include <QAction>
31#include <QScriptValueIterator>30#include <QJSEngine>
31#include <QJSValueIterator>
3232
33#include <cmakeprojectmanager/cmakeprojectconstants.h>33#include <cmakeprojectmanager/cmakeprojectconstants.h>
34#include <projectexplorer/session.h>34#include <projectexplorer/session.h>
@@ -46,21 +46,14 @@
46 QObject(parent), m_bInitialized(false), m_bNameDashReplaced(false)46 QObject(parent), m_bInitialized(false), m_bNameDashReplaced(false)
4747
48{48{
49 QScriptEngineDebugger debugger;
50 debugger.attachTo(&engine);
51 debugger.setAutoShowStandardWindow(true);
52
53 QFile manifestAppFile(QLatin1String(":/ubuntu/manifestlib.js"));49 QFile manifestAppFile(QLatin1String(":/ubuntu/manifestlib.js"));
54 if (!manifestAppFile.open(QIODevice::ReadOnly)) { if(debug) qDebug() << QLatin1String("unable to open js app"); return; }50 if (!manifestAppFile.open(QIODevice::ReadOnly)) { if(debug) qDebug() << QLatin1String("unable to open js app"); return; }
55 QString manifestApp = QString::fromLatin1(manifestAppFile.readAll());51 QString manifestApp = QString::fromLatin1(manifestAppFile.readAll());
56 manifestAppFile.close();52 manifestAppFile.close();
5753
58 QScriptProgram program(manifestApp);54 QJSValue val = engine.evaluate(manifestApp,QStringLiteral("manifestlib.js"));
59 QScriptValue val = engine.evaluate(program);
60 if (val.isNull()) { qWarning() << QLatin1String("unable to process app"); return; }55 if (val.isNull()) { qWarning() << QLatin1String("unable to process app"); return; }
6156
62 //load(QLatin1String(":/ubuntu/manifest.json.template"));
63
64}57}
6558
66void UbuntuClickManifest::setName(QString name) {59void UbuntuClickManifest::setName(QString name) {
@@ -151,26 +144,26 @@
151 QList<UbuntuClickManifest::Hook> hooks;144 QList<UbuntuClickManifest::Hook> hooks;
152 if (!isInitialized()) { return hooks; }145 if (!isInitialized()) { return hooks; }
153146
154 QScriptValue scriptHooks = callGetFunction(QLatin1String("getHooks"),QScriptValueList());147 QJSValue scriptHooks = callGetFunction(QLatin1String("getHooks"),QJSValueList());
155 if(!scriptHooks.isObject())148 if(!scriptHooks.isObject())
156 return hooks;149 return hooks;
157150
158 QScriptValueIterator it(scriptHooks);151 QJSValueIterator it(scriptHooks);
159 while (it.hasNext()) {152 while (it.hasNext()) {
160 it.next();153 it.next();
161 QScriptValue appDescriptor = it.value();154 QJSValue appDescriptor = it.value();
162 if(!appDescriptor.isObject()) {155 if(!appDescriptor.isObject()) {
163 printToOutputPane(tr("Invalid hook in manifest.json file."));156 printToOutputPane(tr("Invalid hook in manifest.json file."));
164 continue;157 continue;
165 }158 }
166159
167 if(!appDescriptor.property(QLatin1String("apparmor")).isValid()) {160 if(!appDescriptor.hasProperty(QLatin1String("apparmor"))) {
168 printToOutputPane(tr("The apparmor path is missing in the manifest file"));161 printToOutputPane(tr("The apparmor path is missing in the manifest file"));
169 continue;162 continue;
170 }163 }
171164
172 bool isScope = appDescriptor.property(QLatin1String("scope")).isValid();165 bool isScope = appDescriptor.hasProperty(QLatin1String("scope"));
173 bool isApp = appDescriptor.property(QLatin1String("desktop")).isValid();166 bool isApp = appDescriptor.hasProperty(QLatin1String("desktop"));
174167
175 if( (isScope && isApp) || (!isScope && !isApp)) {168 if( (isScope && isApp) || (!isScope && !isApp)) {
176 printToOutputPane(tr("The manifest file needs to specify if this is a app or a scope"));169 printToOutputPane(tr("The manifest file needs to specify if this is a app or a scope"));
@@ -195,7 +188,7 @@
195{188{
196 Q_UNUSED(hook);189 Q_UNUSED(hook);
197190
198 QScriptValue scriptValue = engine.newObject();191 QJSValue scriptValue = engine.newObject();
199192
200 scriptValue.setProperty(QStringLiteral("appId"),hook.appId);193 scriptValue.setProperty(QStringLiteral("appId"),hook.appId);
201 scriptValue.setProperty(QStringLiteral("apparmor"),hook.appArmorFile);194 scriptValue.setProperty(QStringLiteral("apparmor"),hook.appArmorFile);
@@ -207,7 +200,7 @@
207 //not known200 //not known
208 return;201 return;
209202
210 callSetFunction(QStringLiteral("setHook"),QScriptValueList{scriptValue});203 callSetFunction(QStringLiteral("setHook"),QJSValueList{scriptValue});
211}204}
212205
213void UbuntuClickManifest::setFrameworkName(const QString &name)206void UbuntuClickManifest::setFrameworkName(const QString &name)
@@ -227,15 +220,15 @@
227{220{
228 if (!isInitialized()) { return QString(); }221 if (!isInitialized()) { return QString(); }
229222
230 QScriptValue v = callGetFunction(QLatin1String("getAppArmorFileName"),QScriptValueList()<<QScriptValue(appId));223 QJSValue v = callGetFunction(QLatin1String("getAppArmorFileName"),QJSValueList()<<QJSValue(appId));
231 return v.toString();224 return v.toString();
232}225}
233226
234bool UbuntuClickManifest::setAppArmorFileName(const QString &appId, const QString &name)227bool UbuntuClickManifest::setAppArmorFileName(const QString &appId, const QString &name)
235{228{
236 if (!isInitialized()) { return false; }229 if (!isInitialized()) { return false; }
237 bool result = callFunction(QLatin1String("setAppArmorFileName"),QScriptValueList()<<QScriptValue(appId)<<QScriptValue(name)).toBool();230 bool result = callFunction(QLatin1String("setAppArmorFileName"),QJSValueList()<<QJSValue(appId)<<QJSValue(name)).toBool();
238 callSetFunction(QLatin1String("setAppArmorFileName"), QScriptValueList()<<appId<<name);231 callSetFunction(QLatin1String("setAppArmorFileName"), QJSValueList()<<appId<<name);
239 if(result)232 if(result)
240 emit appArmorFileNameChanged(appId, name);233 emit appArmorFileNameChanged(appId, name);
241234
@@ -244,7 +237,7 @@
244237
245bool UbuntuClickManifest::enableDebugging()238bool UbuntuClickManifest::enableDebugging()
246{239{
247 return callFunction(QLatin1String("injectDebugPolicy"),QScriptValueList()).toBool();240 return callFunction(QLatin1String("injectDebugPolicy"),QJSValueList()).toBool();
248}241}
249242
250void UbuntuClickManifest::save(QString fileName) {243void UbuntuClickManifest::save(QString fileName) {
@@ -354,7 +347,7 @@
354bool UbuntuClickManifest::loadFromString(const QString &data)347bool UbuntuClickManifest::loadFromString(const QString &data)
355{348{
356 //@TODO probably return the error message349 //@TODO probably return the error message
357 QScriptValue ret = callFunction(QStringLiteral("fromJSON"),QScriptValueList{QScriptValue(data)});350 QJSValue ret = callFunction(QStringLiteral("fromJSON"),QJSValueList{QJSValue(data)});
358 bool success = ret.toBool();351 bool success = ret.toBool();
359 if(success) {352 if(success) {
360 m_bInitialized = true;353 m_bInitialized = true;
@@ -364,47 +357,47 @@
364 return success;357 return success;
365}358}
366359
367QScriptValue UbuntuClickManifest::callFunction(QString functionName, QScriptValueList args) {360QJSValue UbuntuClickManifest::callFunction(QString functionName, QJSValueList args) {
368 QScriptValue global = engine.globalObject();361 QJSValue global = engine.globalObject();
369 QScriptValue cmd = global.property(functionName);362 QJSValue cmd = global.property(functionName);
370 return cmd.call(QScriptValue(),args);363 return cmd.call(args);
371}364}
372365
373void UbuntuClickManifest::callSetFunction(QString functionName, QScriptValueList args) {366void UbuntuClickManifest::callSetFunction(QString functionName, QJSValueList args) {
374 callFunction(functionName,args);367 callFunction(functionName,args);
375}368}
376369
377QScriptValue UbuntuClickManifest::callGetFunction(QString functionName, QScriptValueList args) {370QJSValue UbuntuClickManifest::callGetFunction(QString functionName, QJSValueList args) {
378 return callFunction(functionName,args);371 return callFunction(functionName,args);
379}372}
380373
381QStringList UbuntuClickManifest::callGetStringListFunction(QString functionName) {374QStringList UbuntuClickManifest::callGetStringListFunction(QString functionName) {
382 QScriptValue retval = callFunction(functionName,QScriptValueList());375 QJSValue retval = callFunction(functionName,QJSValueList());
383 return retval.toVariant().toStringList();376 return retval.toVariant().toStringList();
384}377}
385378
386QString UbuntuClickManifest::callGetStringFunction(QString functionName) {379QString UbuntuClickManifest::callGetStringFunction(QString functionName) {
387 QScriptValue retval = callFunction(functionName,QScriptValueList());380 QJSValue retval = callFunction(functionName,QJSValueList());
388 return retval.toVariant().toString();381 return retval.toVariant().toString();
389}382}
390383
391void UbuntuClickManifest::callSetStringListFunction(QString functionName, QStringList args) {384void UbuntuClickManifest::callSetStringListFunction(QString functionName, QStringList args) {
392 QScriptValueList vargs;385 QJSValueList vargs;
393 foreach (QString arg, args)386 foreach (QString arg, args)
394 vargs << QScriptValue(arg);387 vargs << QJSValue(arg);
395 callSetFunction(functionName,vargs);388 callSetFunction(functionName,vargs);
396}389}
397390
398void UbuntuClickManifest::callSetStringFunction(QString functionName, QString args) {391void UbuntuClickManifest::callSetStringFunction(QString functionName, QString args) {
399 QScriptValueList vargs;392 QJSValueList vargs;
400 vargs << QScriptValue(args);393 vargs << QJSValue(args);
401 callSetFunction(functionName,vargs);394 callSetFunction(functionName,vargs);
402}395}
403396
404QStringList UbuntuClickManifest::callGetStringListFunction(QString functionName, QString args) {397QStringList UbuntuClickManifest::callGetStringListFunction(QString functionName, QString args) {
405 QScriptValueList vargs;398 QJSValueList vargs;
406 vargs << QScriptValue(args);399 vargs << QJSValue(args);
407 QScriptValue retval = callFunction(functionName,vargs);400 QJSValue retval = callFunction(functionName,vargs);
408 return retval.toVariant().toStringList();401 return retval.toVariant().toStringList();
409}402}
410403
411404
=== modified file 'src/ubuntu/ubuntuclickmanifest.h'
--- src/ubuntu/ubuntuclickmanifest.h 2015-01-13 09:55:54 +0000
+++ src/ubuntu/ubuntuclickmanifest.h 2015-06-17 14:03:08 +0000
@@ -20,10 +20,8 @@
20#define UBUNTUCLICKMANIFEST_H20#define UBUNTUCLICKMANIFEST_H
2121
22#include <QObject>22#include <QObject>
23#include <QScriptProgram>23#include <QJSEngine>
24#include <QScriptEngine>
25#include <QStringList>24#include <QStringList>
26#include <QScriptValue>
2725
28namespace ProjectExplorer { class Project; }26namespace ProjectExplorer { class Project; }
2927
@@ -116,19 +114,18 @@
116 void nameDashReplaced(){ m_bNameDashReplaced = true; }114 void nameDashReplaced(){ m_bNameDashReplaced = true; }
117115
118protected:116protected:
119 void callSetFunction(QString functionName, QScriptValueList args);117 void callSetFunction(QString functionName, QJSValueList args);
120 void callSetStringListFunction(QString functionName, QStringList args);118 void callSetStringListFunction(QString functionName, QStringList args);
121 void callSetStringFunction(QString functionName, QString args);119 void callSetStringFunction(QString functionName, QString args);
122120
123 QScriptValue callGetFunction(QString functionName, QScriptValueList args);121 QJSValue callGetFunction(QString functionName, QJSValueList args);
124 QStringList callGetStringListFunction(QString functionName);122 QStringList callGetStringListFunction(QString functionName);
125 QStringList callGetStringListFunction(QString functionName, QString args);123 QStringList callGetStringListFunction(QString functionName, QString args);
126 QString callGetStringFunction(QString functionName);124 QString callGetStringFunction(QString functionName);
127125
128 QScriptValue callFunction(QString functionName, QScriptValueList args);126 QJSValue callFunction(QString functionName, QJSValueList args);
129127
130 QScriptProgram m_manifestJsApp;128 QJSEngine engine;
131 QScriptEngine engine;
132129
133 QString m_userName;130 QString m_userName;
134131
135132
=== modified file 'src/ubuntu/ubuntucreatenewchrootdialog.cpp'
--- src/ubuntu/ubuntucreatenewchrootdialog.cpp 2014-11-19 10:28:30 +0000
+++ src/ubuntu/ubuntucreatenewchrootdialog.cpp 2015-06-17 14:03:08 +0000
@@ -40,7 +40,7 @@
4040
41namespace Internal {41namespace Internal {
4242
43UbuntuCreateNewChrootDialog::UbuntuCreateNewChrootDialog(const QString &arch, QWidget *parent) :43UbuntuCreateNewChrootDialog::UbuntuCreateNewChrootDialog(const QString &arch, const QString &framework, QWidget *parent) :
44 QDialog(parent),44 QDialog(parent),
45 ui(new Ui::UbuntuCreateNewChrootDialog)45 ui(new Ui::UbuntuCreateNewChrootDialog)
46{46{
@@ -48,7 +48,11 @@
4848
49 //add supported targets49 //add supported targets
50 for(int i = 0; Constants::UBUNTU_CLICK_SUPPORTED_TARGETS[i][0][0] != '\0'; i++){50 for(int i = 0; Constants::UBUNTU_CLICK_SUPPORTED_TARGETS[i][0][0] != '\0'; i++){
51 ui->comboBoxSeries->addItem(QLatin1String(Constants::UBUNTU_CLICK_SUPPORTED_TARGETS[i][2]),i);51 const QString currFwDisplayName = QLatin1String(Constants::UBUNTU_CLICK_SUPPORTED_TARGETS[i][2]);
52 const QString currFw = QLatin1String(Constants::UBUNTU_CLICK_SUPPORTED_TARGETS[i][1]);
53
54 if ( framework.isNull() || currFw == framework)
55 ui->comboBoxSeries->addItem(currFwDisplayName,i);
52 }56 }
5357
54 //add supported architectures58 //add supported architectures
@@ -70,9 +74,9 @@
70 * Opens a dialog that lets the user select a new chroot, returns false74 * Opens a dialog that lets the user select a new chroot, returns false
71 * if the user pressed cancel75 * if the user pressed cancel
72 */76 */
73bool UbuntuCreateNewChrootDialog::getNewChrootTarget(UbuntuClickTool::Target *target, const QString &arch, QWidget *parent)77bool UbuntuCreateNewChrootDialog::getNewChrootTarget(UbuntuClickTool::Target *target, const QString &arch, const QString &framework, QWidget *parent)
74{78{
75 UbuntuCreateNewChrootDialog dlg(arch, parent ? parent : Core::ICore::mainWindow());79 UbuntuCreateNewChrootDialog dlg(arch, framework, parent ? parent : Core::ICore::mainWindow());
76 if( dlg.exec() == QDialog::Accepted) {80 if( dlg.exec() == QDialog::Accepted) {
77 bool ok = false;81 bool ok = false;
7882
7983
=== modified file 'src/ubuntu/ubuntucreatenewchrootdialog.h'
--- src/ubuntu/ubuntucreatenewchrootdialog.h 2014-07-31 09:41:18 +0000
+++ src/ubuntu/ubuntucreatenewchrootdialog.h 2015-06-17 14:03:08 +0000
@@ -35,10 +35,10 @@
35 Q_OBJECT35 Q_OBJECT
3636
37public:37public:
38 explicit UbuntuCreateNewChrootDialog(const QString &arch = QString(), QWidget *parent = 0);38 explicit UbuntuCreateNewChrootDialog(const QString &arch = QString(), const QString &framework = QString(), QWidget *parent = 0);
39 ~UbuntuCreateNewChrootDialog();39 ~UbuntuCreateNewChrootDialog();
4040
41 static bool getNewChrootTarget(UbuntuClickTool::Target *target, const QString &arch, QWidget *parent = 0);41 static bool getNewChrootTarget(UbuntuClickTool::Target *target, const QString &arch, const QString &framework, QWidget *parent = 0);
4242
43private:43private:
44 Ui::UbuntuCreateNewChrootDialog *ui;44 Ui::UbuntuCreateNewChrootDialog *ui;
4545
=== modified file 'src/ubuntu/ubuntukitmanager.cpp'
--- src/ubuntu/ubuntukitmanager.cpp 2015-04-10 15:06:01 +0000
+++ src/ubuntu/ubuntukitmanager.cpp 2015-06-17 14:03:08 +0000
@@ -146,7 +146,7 @@
146 tr("There is no compatible chroot available on your system, do you want to create it now?"));146 tr("There is no compatible chroot available on your system, do you want to create it now?"));
147147
148 if(choice == QMessageBox::Yes) {148 if(choice == QMessageBox::Yes) {
149 if(!UbuntuClickDialog::createClickChrootModal(false, device->architecture()))149 if(!UbuntuClickDialog::createClickChrootModal(false, device->architecture(), device->framework()))
150 return;150 return;
151151
152 toolchains = clickToolChains();152 toolchains = clickToolChains();
153153
=== modified file 'src/ubuntu/ubuntupackagingmodel.cpp'
--- src/ubuntu/ubuntupackagingmodel.cpp 2015-04-16 09:30:54 +0000
+++ src/ubuntu/ubuntupackagingmodel.cpp 2015-06-17 14:03:08 +0000
@@ -57,7 +57,6 @@
5757
58#include <QMenu>58#include <QMenu>
59#include <QMessageBox>59#include <QMessageBox>
60#include <QScriptEngine>
61#include <QRegularExpression>60#include <QRegularExpression>
62#include <QApplication>61#include <QApplication>
6362
6463
=== modified file 'src/ubuntu/ubuntuplugin.cpp'
--- src/ubuntu/ubuntuplugin.cpp 2015-01-13 16:37:58 +0000
+++ src/ubuntu/ubuntuplugin.cpp 2015-06-17 14:03:08 +0000
@@ -106,6 +106,10 @@
106 Q_UNUSED(arguments)106 Q_UNUSED(arguments)
107 Q_UNUSED(errorString)107 Q_UNUSED(errorString)
108108
109 QFont defaultFont = QGuiApplication::font();
110 defaultFont.setFamily(QStringLiteral("Ubuntu"));
111 defaultFont.setWeight(QFont::Light);
112
109 qmlRegisterUncreatableType<UbuntuQmlDeviceConnectionState>("Ubuntu.DevicesModel",0,1,"DeviceConnectionState",QStringLiteral("Not instantiable"));113 qmlRegisterUncreatableType<UbuntuQmlDeviceConnectionState>("Ubuntu.DevicesModel",0,1,"DeviceConnectionState",QStringLiteral("Not instantiable"));
110 qmlRegisterUncreatableType<UbuntuQmlDeviceDetectionState>("Ubuntu.DevicesModel",0,1,"DeviceDetectionState",QStringLiteral("Not instantiable"));114 qmlRegisterUncreatableType<UbuntuQmlDeviceDetectionState>("Ubuntu.DevicesModel",0,1,"DeviceDetectionState",QStringLiteral("Not instantiable"));
111 qmlRegisterUncreatableType<UbuntuQmlFeatureState>("Ubuntu.DevicesModel",0,1,"FeatureState",QStringLiteral("Not instantiable"));115 qmlRegisterUncreatableType<UbuntuQmlFeatureState>("Ubuntu.DevicesModel",0,1,"FeatureState",QStringLiteral("Not instantiable"));
@@ -269,6 +273,12 @@
269273
270 connect(m_migrateProjectAction, SIGNAL(triggered()), this, SLOT(migrateProject()));274 connect(m_migrateProjectAction, SIGNAL(triggered()), this, SLOT(migrateProject()));
271275
276 /* Fix Bug lp:1340061 "Some dialogs have unreadable (too small) text"
277 * The Bug is caused by UITK that overrides the default Font that is based
278 * on the grid units, which is not useable in Widget based applications
279 */
280 QGuiApplication::setFont(defaultFont);
281
272 return true;282 return true;
273}283}
274284
275285
=== modified file 'src/ubuntu/ubuntusettingsclickwidget.cpp'
--- src/ubuntu/ubuntusettingsclickwidget.cpp 2015-02-19 22:43:30 +0000
+++ src/ubuntu/ubuntusettingsclickwidget.cpp 2015-06-17 14:03:08 +0000
@@ -84,8 +84,7 @@
84 //make sure the current settings are stored84 //make sure the current settings are stored
85 apply();85 apply();
8686
87 QString dummy;87 Internal::UbuntuClickDialog::createClickChrootModal(true, QString(), QString(), this);
88 Internal::UbuntuClickDialog::createClickChrootModal(true, dummy, this);
89 listExistingClickTargets();88 listExistingClickTargets();
90}89}
9190
9291
=== modified file 'src/ubuntu/wizards/ubuntufirstrunwizard.cpp'
--- src/ubuntu/wizards/ubuntufirstrunwizard.cpp 2015-05-04 11:53:35 +0000
+++ src/ubuntu/wizards/ubuntufirstrunwizard.cpp 2015-06-17 14:03:08 +0000
@@ -157,7 +157,7 @@
157157
158void UbuntuSetupChrootWizardPage::onCreateKitButtonClicked()158void UbuntuSetupChrootWizardPage::onCreateKitButtonClicked()
159{159{
160 UbuntuClickDialog::createClickChrootModal(true,QString(),this);160 UbuntuClickDialog::createClickChrootModal(true,QString(), QString(),this);
161 initializePage();161 initializePage();
162}162}
163163
164164
=== modified file 'tests/manifest/manifest.pro'
--- tests/manifest/manifest.pro 2014-07-21 09:29:06 +0000
+++ tests/manifest/manifest.pro 2015-06-17 14:03:08 +0000
@@ -1,4 +1,4 @@
1QT = core gui script scripttools1QT = core gui qml
22
3CONFIG += c++113CONFIG += c++11
44

Subscribers

People subscribed via source and target branches