Add dummy_imports for qmlimportscanner to find the correct dependencies

Otherwise, some dependencies won't be fulfilled and the following will
fail:
 component.setData("import QtQml\nQtObject{}", QUrl())

Pick-to: 6.2 6.3
Task-number: QTBUG-97056
Change-Id: If53c77b992a01051d7e83378723000615be9dfe8
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Assam Boudjelthia 2021-12-14 15:27:36 +02:00
parent 8487781809
commit 91930dd3d7
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// This file exists for the sole purpose for qmlimportscanner to find
// which modules it needs to extract for deployment.
// Otherwise, it fails to find the imports that are expressed in C++
import QtQml
QtObject { } // This is needed in order to keep importscanner happy

View File

@ -0,0 +1,7 @@
// This file exists for the sole purpose for qmlimportscanner to find
// which modules it needs to extract for deployment.
// Otherwise, it fails to find the imports that are expressed in C++
import QtQml
QtObject { } // This is needed in order to keep importscanner happy