QmlDesigner: Create asset_imports directory at project creation

Some watchers won't be initialized correctly if the folder doesn't
exist at project startup. E.g. texture images won't appear in project
view when material with textures is imported, unless asset_imports
already exists at project load.

Task-number: QDS-7813
Change-Id: I79449ae823d9005e74594f08bfa87abf44045caf
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Miikka Heikkinen
2022-10-14 12:53:01 +03:00
parent 88c7562582
commit fdf1baecd6
7 changed files with 25 additions and 0 deletions

View File

@@ -328,6 +328,10 @@
"source": "../common/fonts.txt",
"target": "%{ProjectDirectory}/content/fonts/fonts.txt"
},
{
"source": "../common/asset_imports.txt",
"target": "%{ProjectDirectory}/asset_imports/asset_imports.txt"
},
{
"source": "../common/CMakeLists.imports.txt.tpl",
"target": "%{ProjectDirectory}/imports/CMakeLists.txt"

View File

@@ -324,6 +324,10 @@
"source": "../common/fonts.txt",
"target": "%{ProjectDirectory}/content/fonts/fonts.txt"
},
{
"source": "../common/asset_imports.txt",
"target": "%{ProjectDirectory}/asset_imports/asset_imports.txt"
},
{
"source": "../common/CMakeLists.imports.txt.tpl",
"target": "%{ProjectDirectory}/imports/CMakeLists.txt"

View File

@@ -0,0 +1 @@
Imported 3D assets and components imported from bundles will be created in this folder.

View File

@@ -323,6 +323,10 @@
"source": "../common/fonts.txt",
"target": "%{ProjectDirectory}/content/fonts/fonts.txt"
},
{
"source": "../common/asset_imports.txt",
"target": "%{ProjectDirectory}/asset_imports/asset_imports.txt"
},
{
"source": "../common/CMakeLists.imports.txt.tpl",
"target": "%{ProjectDirectory}/imports/CMakeLists.txt"

View File

@@ -280,6 +280,10 @@
"source": "../common/fonts.txt",
"target": "%{ProjectDirectory}/content/fonts/fonts.txt"
},
{
"source": "../common/asset_imports.txt",
"target": "%{ProjectDirectory}/asset_imports/asset_imports.txt"
},
{
"source": "../common/CMakeLists.imports.txt.tpl",
"target": "%{ProjectDirectory}/imports/CMakeLists.txt"

View File

@@ -284,6 +284,10 @@
"source": "../common/fonts.txt",
"target": "%{ProjectDirectory}/content/fonts/fonts.txt"
},
{
"source": "../common/asset_imports.txt",
"target": "%{ProjectDirectory}/asset_imports/asset_imports.txt"
},
{
"source": "../common/CMakeLists.imports.txt.tpl",
"target": "%{ProjectDirectory}/imports/CMakeLists.txt"

View File

@@ -284,6 +284,10 @@
"source": "../common/fonts.txt",
"target": "%{ProjectDirectory}/content/fonts/fonts.txt"
},
{
"source": "../common/asset_imports.txt",
"target": "%{ProjectDirectory}/asset_imports/asset_imports.txt"
},
{
"source": "../common/CMakeLists.imports.txt.tpl",
"target": "%{ProjectDirectory}/imports/CMakeLists.txt"