feat(build_resources_file): supports qmldir files

This commit is contained in:
Ronan Abhamon 2016-09-23 15:46:36 +02:00
parent 352dd00a18
commit c28b3c55a2
3 changed files with 17 additions and 1 deletions

View file

@ -5,9 +5,11 @@ echo " <qresource prefix=\"/\">"
for filename in $(find languages/ ui/ imgs/ -type f)
do
basename="${filename##*/}"
extension="${filename##*.}"
if [[ "${extension}" == @(qml|svg|png|qm|js) ]]; then
if [[ "${extension}" == @(qml|svg|png|qm|js) ||
"${basename}" == "qmldir" ]]; then
echo " <file>$filename</file>"
fi
done

View file

@ -0,0 +1,12 @@
pragma Singleton
import QtQuick 2.7
QtObject {
property var background: Rectangle {
color: 'transparent'
}
property int animationDuration: 200
property int iconSize: 32
property string icon: 'collapse'
}

2
tests/ui/style/qmldir Normal file
View file

@ -0,0 +1,2 @@
module Style
singleton CollapseStyle 1.0 collapse/Style.qml