fix: load qml from /qt/qml so the installed agent finds its types

This commit is contained in:
Felitendo committed 2026-09-22 20:32:31 +02:00
1 parent f671acc93b
commit 08a18ce736
1 file changed
+3 -1
+3 -1
View File
@@ -159,6 +159,8 @@ if(PFU_BUILD_AGENT)
# The QML files sit next to the module's qmldir in the resources, so they
# see each other (and the Theme singleton) without importing anything.
# Under /qt/qml, which the engine searches, or an installed agent finds no
# types (the build directory only works by its PlasmaFaceUnlock/qmldir).
set(PFU_QML_FILES Theme FaceGlyph LockGlyph Checkmark Bubble TickRing Enroll PillButton)
foreach(f ${PFU_QML_FILES})
set_source_files_properties(src/agent/qml/${f}.qml PROPERTIES QT_RESOURCE_ALIAS ${f}.qml)
@@ -168,7 +170,7 @@ if(PFU_BUILD_AGENT)
qt_add_qml_module(plasma-face-unlock-agent
URI PlasmaFaceUnlock
VERSION 1.0
NO_RESOURCE_TARGET_PATH
RESOURCE_PREFIX /qt/qml
SOURCES
src/agent/previewitem.cpp
src/agent/previewitem.h