40
40
<file source="backend/tests/unit/tst_mytype.qml" target="backend/tests/unit/tst_mytype.qml" openeditor="false"/>
43
<!-- Create a 2nd wizard page with click package parameters -->
44
<fieldpagetitle>Click package parameters</fieldpagetitle>
46
<field mandatory="true" name="ClickDomain">
47
<fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
48
defaulttext="" placeholdertext="Nickname"/>
49
<fielddescription>Nickname:</fielddescription>
51
<field mandatory="true" name="ClickMaintainer">
52
<fieldcontrol class="QLineEdit" validator='^[^"]+$'
53
defaulttext="" placeholdertext="Maintainer"/>
54
<fielddescription>Maintainer:</fielddescription>
56
<field mandatory="true" name="ClickHookName">
57
<fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
58
defaulttext="app" placeholdertext="app hook name"/>
59
<fielddescription>App name:</fielddescription>
61
<field name="ClickFrameworkVersion">
62
<fieldcontrol class="QComboBox" defaultindex="0">
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">
66
<comboentrytext>Dummy Framework</comboentrytext>
70
<fielddescription>Framework:</fielddescription>
43
<!-- Create a 2nd wizard page with click package parameters -->
44
<fieldpagetitle>Click package parameters</fieldpagetitle>
46
<field mandatory="true" name="ClickDomain">
47
<fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9-]+$'
48
defaulttext="" placeholdertext="Nickname"/>
49
<fielddescription>Nickname:</fielddescription>
51
<field mandatory="true" name="ClickMaintainer">
52
<fieldcontrol class="QLineEdit" validator='^[^"]+$'
53
defaulttext="" placeholdertext="Maintainer"/>
54
<fielddescription>Maintainer:</fielddescription>
56
<field mandatory="true" name="ClickHookName">
57
<fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9.-]+$'
58
defaulttext="%ProjectName%" placeholdertext="app hook name"/>
59
<fielddescription>App name:</fielddescription>
61
<field name="ClickFrameworkVersion">
62
<fieldcontrol class="QComboBox" defaultindex="0">
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">
66
<comboentrytext>Dummy Framework</comboentrytext>
70
<fielddescription>Framework:</fielddescription>
74
74
<validationrule condition='/^(.*)\s+<(.*@.*)>$/.test("%ClickMaintainer%")'>
75
75
<message>Invalid format for maintainer (should be like "Joe Bloggs <joe.bloggs@isp.com>")</message>