blob: a3c4857cce9e06fc96cc1c84003d5141a26f0b4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "qdslandingpagetheme.h"
#include "qmlprojectplugin.h"
#include <coreplugin/icore.h>
#include <QQmlEngine>
#include <QQmlComponent>
namespace QmlProjectManager {
QdsLandingPageTheme::QdsLandingPageTheme(Utils::Theme *originTheme, QObject *parent)
: Utils::Theme(originTheme, parent)
{
}
void QdsLandingPageTheme::setupTheme(QQmlEngine *engine)
{
Q_UNUSED(engine)
static const int typeIndex = qmlRegisterSingletonType<QdsLandingPageTheme>(
"LandingPageTheme", 1, 0, "Theme", [](QQmlEngine *, QJSEngine *) {
return new QdsLandingPageTheme(Utils::creatorTheme(), nullptr);
});
QScopedPointer<QdsLandingPageTheme> theme(new QdsLandingPageTheme(Utils::creatorTheme(), nullptr));
Q_UNUSED(typeIndex)
}
} //QmlProjectManager
|