diff options
author | Tapani Mattila <tapani.mattila@qt.io> | 2022-05-23 10:35:18 +0300 |
---|---|---|
committer | Tapani Mattila <tapani.mattila@qt.io> | 2022-05-25 09:18:09 +0000 |
commit | f55fc5276b901c96517c4dbedbc6717df240db9a (patch) | |
tree | 4d9b13ffd7514e482fb44933df245f1d23961e74 /src/plugins/qmlprojectmanager/qdslandingpage.cpp | |
parent | 5ae128f6347f712507924086ef7a21ba9ce40882 (diff) | |
download | qt-creator-f55fc5276b901c96517c4dbedbc6717df240db9a.tar.gz |
QmlProjectManager: Add theming support to QDS landing page
Task-number: QDS-6897
Change-Id: I2e1cea556d906d59664cb72612ea1d67ef495f4f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qdslandingpage.cpp')
-rw-r--r-- | src/plugins/qmlprojectmanager/qdslandingpage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/qmlprojectmanager/qdslandingpage.cpp b/src/plugins/qmlprojectmanager/qdslandingpage.cpp index f56d60e627..b44584ea09 100644 --- a/src/plugins/qmlprojectmanager/qdslandingpage.cpp +++ b/src/plugins/qmlprojectmanager/qdslandingpage.cpp @@ -24,6 +24,7 @@ ****************************************************************************/ #include "qdslandingpage.h" +#include "qdslandingpagetheme.h" #include "utils/algorithm.h" #include <coreplugin/icore.h> @@ -46,6 +47,8 @@ QdsLandingPage::QdsLandingPage(QWidget *parent) const QString landingPath = Core::ICore::resourcePath(LANDINGPAGEPATH).toString(); qmlRegisterSingletonInstance<QdsLandingPage>("LandingPageApi", 1, 0, "LandingPageApi", this); + QdsLandingPageTheme::setupTheme(m_dialog->engine()); + m_dialog->setResizeMode(QQuickWidget::SizeRootObjectToView); m_dialog->engine()->addImportPath(landingPath + "/imports"); m_dialog->engine()->addImportPath(resourcePath); |