QML extension plugin wizard: Make deployable on Maemo.

Task-number: QTCREATORBUG-3229
Reviewed-by: Alessandro Portale
This commit is contained in:
Christian Kandeler
2011-02-10 15:16:55 +01:00
parent 4efa780b55
commit d6aa31a1fb
2 changed files with 15 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ QT += declarative
CONFIG += qt plugin
TARGET = $$qtLibraryTarget($$TARGET)
uri = %Uri%
# Input
SOURCES += \
@@ -23,3 +24,13 @@ OTHER_FILES = qmldir
QMAKE_EXTRA_TARGETS += copy_qmldir
PRE_TARGETDEPS += $$copy_qmldir.target
}
qmldir.files = qmldir
symbian {
# ...
} else:unix {
installPath = /usr/lib/qt4/imports/$$replace(uri, \., /)
qmldir.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
}

View File

@@ -60,6 +60,10 @@ leave room for the Qt 4 target page.
<fieldcontrol class="QLineEdit" validator='^[A-Za-z0-9_]+$' defaulttext="MyItem"/>
<fielddescription>Object Class-name:</fielddescription>
</field>
<field mandatory="false" 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"/>
<fielddescription>URI:</fielddescription>
</field>
</fields>
<validationrules>
<validationrule condition='"%ObjectName%" != "%ProjectName%_plugin"'>