Commit f1ca0250 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlExtensionPlugin: Require objectname, URI

Make sure 'next' button is disabled if fields are empty.

Task-number: QTCREATORGBUG-3921
parent e78427b7
...@@ -56,11 +56,11 @@ leave room for the Qt 4 target page. ...@@ -56,11 +56,11 @@ leave room for the Qt 4 target page.
<!-- Create a 2nd wizard page with parameters --> <!-- Create a 2nd wizard page with parameters -->
<fieldpagetitle>Custom QML Extension Plugin Parameters</fieldpagetitle> <fieldpagetitle>Custom QML Extension Plugin Parameters</fieldpagetitle>
<fields> <fields>
<field mandatory="false" name="ObjectName"> <field mandatory="true" name="ObjectName">
<fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9_]+$' defaulttext="MyItem"/> <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9_]+$' defaulttext="MyItem"/>
<fielddescription>Object Class-name:</fielddescription> <fielddescription>Object Class-name:</fielddescription>
</field> </field>
<field mandatory="false" name="Uri"> <field mandatory="true" name="Uri">
<fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9]+([A-Za-z0-9-]*[A-Za-z0-9]+)?(\.[A-Za-z0-9]+([-A-Za-z0-9]*[A-Za-z0-9]+)?)*$' defaulttext="com.mycompany.qmlcomponents"/> <fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9]+([A-Za-z0-9-]*[A-Za-z0-9]+)?(\.[A-Za-z0-9]+([-A-Za-z0-9]*[A-Za-z0-9]+)?)*$' defaulttext="com.mycompany.qmlcomponents"/>
<fielddescription>URI:</fielddescription> <fielddescription>URI:</fielddescription>
</field> </field>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment