mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 22:58:15 +00:00
feat(build_resources_file): supports qmldir files
This commit is contained in:
parent
352dd00a18
commit
c28b3c55a2
3 changed files with 17 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
12
tests/ui/style/collapse/Style.qml
Normal file
12
tests/ui/style/collapse/Style.qml
Normal 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
2
tests/ui/style/qmldir
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
module Style
|
||||
singleton CollapseStyle 1.0 collapse/Style.qml
|
||||
Loading…
Add table
Reference in a new issue