File qt5-let-qml-find-files-in-lib-qt5-qml.patch of Package mingw64-libqt5-qtdeclarative

diff -ur qtdeclarative-everywhere-src-5.15.14+kde0.orig/src/qml/qml/qqmlimport.cpp qtdeclarative-everywhere-src-5.15.14+kde0/src/qml/qml/qqmlimport.cpp
--- qtdeclarative-everywhere-src-5.15.14+kde0.orig/src/qml/qml/qqmlimport.cpp	2024-05-08 07:14:41.000000000 +0200
+++ qtdeclarative-everywhere-src-5.15.14+kde0/src/qml/qml/qqmlimport.cpp	2024-07-10 23:53:48.350582773 +0200
@@ -1910,7 +1910,11 @@
     }
 
     addImportPath(QStringLiteral("qrc:/qt-project.org/imports"));
+#ifdef __MINGW32__
+    addImportPath(QCoreApplication::applicationDirPath().append(QStringLiteral("/../lib/qt5/qml")));
+#else
     addImportPath(QCoreApplication::applicationDirPath());
+#endif
 #if defined(Q_OS_ANDROID)
     addImportPath(QStringLiteral("qrc:/android_rcc_bundle/qml"));
     if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty("QT_BUNDLED_LIBS_PATH"))) {
 
openSUSE Build Service is sponsored by