From 529fb8eca7057bddb639f3c23076f567e4f445a1 Mon Sep 17 00:00:00 2001 From: Rafal Stawarski Date: Thu, 24 Oct 2024 21:44:46 +0200 Subject: [PATCH] DSStore: Expose module dir path Task-number: QDS-13811 Change-Id: I621fde180baa8ef8958c487ceceb4422ddc55cdc Reviewed-by: Thomas Hartmann --- src/plugins/qmldesigner/libs/designsystem/dsstore.cpp | 5 +++++ src/plugins/qmldesigner/libs/designsystem/dsstore.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/plugins/qmldesigner/libs/designsystem/dsstore.cpp b/src/plugins/qmldesigner/libs/designsystem/dsstore.cpp index 4fd0a17d164..4c9aedf2f97 100644 --- a/src/plugins/qmldesigner/libs/designsystem/dsstore.cpp +++ b/src/plugins/qmldesigner/libs/designsystem/dsstore.cpp @@ -222,6 +222,11 @@ std::optional DSStore::typeName(DSThemeManager *collection) const return {}; } +std::optional DSStore::moduleDirPath() const +{ + return dsModuleDir(m_ed); +} + std::optional DSStore::loadCollection(const QString &typeName, const Utils::FilePath &qmlFilePath) { diff --git a/src/plugins/qmldesigner/libs/designsystem/dsstore.h b/src/plugins/qmldesigner/libs/designsystem/dsstore.h index 03e8e1ddc21..6beb22b87a3 100644 --- a/src/plugins/qmldesigner/libs/designsystem/dsstore.h +++ b/src/plugins/qmldesigner/libs/designsystem/dsstore.h @@ -33,6 +33,8 @@ public: DSThemeManager *addCollection(const QString &qmlTypeName); std::optional typeName(DSThemeManager *collection) const; + std::optional moduleDirPath() const; + private: std::optional loadCollection(const QString &typeName, const Utils::FilePath &qmlFilePath); std::optional writeQml(const DSThemeManager &mgr,