all: import module dependencies via qmldir

Improves compatibility with qml tooling.
This commit is contained in:
outfoxxed 2024-05-29 19:29:57 -07:00
parent 0519acf1d6
commit 569c40494d
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
7 changed files with 23 additions and 66 deletions

View file

@ -34,13 +34,6 @@ class WaylandPlugin: public QuickshellPlugin {
// will not be registered. This can be worked around with a module import which makes
// the QML_ELMENT module import the old register-type style module.
qmlRegisterModuleImport(
"Quickshell.Wayland",
QQmlModuleImportModuleAny,
"Quickshell.Wayland._WlrLayerShell",
QQmlModuleImportLatest
);
qmlRegisterModuleImport(
"Quickshell",
QQmlModuleImportModuleAny,