forked from qt-creator/qt-creator
QML extension plugin wizard: Make deployable on Maemo.
Task-number: QTCREATORBUG-3229 Reviewed-by: Alessandro Portale
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"'>
|
||||
|
||||
Reference in New Issue
Block a user