aboutsummaryrefslogtreecommitdiffstats
path: root/src/labs/stylekit/qqstylekitstyleandthemebase_p.h
blob: c59fde77c8aa79dee84c82f8ee7ce4ea24c3110a (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Qt-Security score:significant reason:default

#ifndef QQSTYLEKITTSTYLEANDTHEMEBASE_P_H
#define QQSTYLEKITTSTYLEANDTHEMEBASE_P_H

//
//  W A R N I N G
//  -------------
//
// This file is not part of the Qt API.  It exists purely as an
// implementation detail.  This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//

#include <QtQml/QtQml>
#include "qqstylekitcontrols_p.h"
#include "qqstylekitfont_p.h"

QT_BEGIN_NAMESPACE

class QQStyleKitStyleAndThemeBase : public QQStyleKitControls
{
    Q_OBJECT
    Q_PROPERTY(QQStyleKitFont *fonts READ fonts NOTIFY fontsChanged FINAL)
    //TODO: Move palettes property here as well
    QML_UNCREATABLE("This component is abstract, and cannot be instantiated")
    QML_NAMED_ELEMENT(ThemeProperties)

public:
    QQStyleKitStyleAndThemeBase(QObject *parent = nullptr);

    QQStyleKitFont *fonts();

signals:
    void fontsChanged();

private:
    Q_DISABLE_COPY(QQStyleKitStyleAndThemeBase)

    QQStyleKitFont m_fonts;
};

QT_END_NAMESPACE

#endif // QQSTYLEKITTSTYLEANDTHEMEBASE_P_H