| 1 |
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#ifndef DXCBPLATFORMINTERFACE_P_H |
| 6 |
#define DXCBPLATFORMINTERFACE_P_H |
| 7 |
|
| 8 |
#include "dxcbplatforminterface.h" |
| 9 |
#include "private/dplatforminterface_p.h" |
| 10 |
|
| 11 |
#include <QHash> |
| 12 |
#include <DObjectPrivate> |
| 13 |
|
| 14 |
DGUI_BEGIN_NAMESPACE |
| 15 |
|
| 16 |
class DNativeSettings; |
| 17 |
class DPlatformTheme; |
| 18 |
|
| 19 |
class DXCBPlatformInterfacePrivate : public DCORE_NAMESPACE::DObjectPrivate |
| 20 |
{ |
| 21 |
public: |
| 22 |
D_DECLARE_PUBLIC(DXCBPlatformInterface) |
| 23 |
DXCBPlatformInterfacePrivate(DXCBPlatformInterface *qq); |
| 24 |
|
| 25 |
void _q_onThemePropertyChanged(const QByteArray &name, const QVariant &value); |
| 26 |
|
| 27 |
public: |
| 28 |
DPlatformTheme *parent = nullptr; |
| 29 |
bool fallbackProperty = true; |
| 30 |
DNativeSettings *theme; |
| 31 |
QHash<QString, QString> m_properties; |
| 32 |
}; |
| 33 |
|
| 34 |
DGUI_END_NAMESPACE |
| 35 |
|
| 36 |
#endif // DNATIVESETTINGS_P_H |