1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKSTYLE_P_H
5#define QQUICKSTYLE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qsharedpointer.h>
19#include <QtQuickControls2/qtquickcontrols2global.h>
20#include <QtCore/private/qglobal_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QSettings;
25
26class Q_QUICKCONTROLS2_EXPORT QQuickStylePrivate
27{
28public:
29 static QString style();
30 static QString effectiveStyleName(const QString &styleName);
31 static QString fallbackStyle();
32 static bool isCustomStyle();
33 static bool isResolved();
34 static bool isUsingDefaultStyle();
35 static bool exists();
36 static void init();
37 static void reset();
38 static QString configFilePath();
39 static QSharedPointer<QSettings> settings(const QString &group = QString());
40 static const QFont *readFont(const QSharedPointer<QSettings> &settings);
41 static const QPalette *readPalette(const QSharedPointer<QSettings> &settings);
42 static bool isDarkSystemTheme();
43 static QStringList builtInStyles();
44};
45
46QT_END_NAMESPACE
47
48#endif // QQUICKSTYLE_P_H
49

source code of qtdeclarative/src/quickcontrols/qquickstyle_p.h