aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprojectmanager/qdslandingpagetheme.cpp
blob: 801bcb71e4ed2d1f083c161ead0d007b96a05d9c (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+ OR GPL-3.0 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