depot/pkgs/kde/plasma/plasma-integration/qml-path.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

12 lines
658 B
Diff

diff --git a/qt6/src/platformtheme/kdeplatformtheme.cpp b/qt6/src/platformtheme/kdeplatformtheme.cpp
index fea04b5..7efafd1 100644
--- a/qt6/src/platformtheme/kdeplatformtheme.cpp
+++ b/qt6/src/platformtheme/kdeplatformtheme.cpp
@@ -551,6 +551,7 @@ bool KdePlatformTheme::checkIfThemeExists(const QString &themePath)
// QML_IMPORT_PATH is the new one, but QML2_IMPORT_PATH is still used
checkEnvironmentVariable("QML2_IMPORT_PATH");
checkEnvironmentVariable("QML_IMPORT_PATH");
+ checkEnvironmentVariable("NIXPKGS_QT6_QML_IMPORT_PATH");
for (const QString &path : moduleSearchPaths) {
if (QDir(path + themePath).exists()) {