diff options
Diffstat (limited to 'raveos-calamares-module/common/RaveBrandingQml.h')
| -rw-r--r-- | raveos-calamares-module/common/RaveBrandingQml.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/raveos-calamares-module/common/RaveBrandingQml.h b/raveos-calamares-module/common/RaveBrandingQml.h new file mode 100644 index 0000000..6ad3453 --- /dev/null +++ b/raveos-calamares-module/common/RaveBrandingQml.h @@ -0,0 +1,13 @@ +#pragma once + +#include <Branding.h> + +#include <QQmlEngine> + +inline void addRaveBrandingImportPath( QQmlEngine* engine ) +{ + if ( const auto* branding = Calamares::Branding::instance() ) + { + engine->addImportPath( branding->componentDirectory() ); + } +} |