DtkDeclarative
DTK Declarative module
载入中...
搜索中...
未找到
dqmlglobalobject_p_p.h
1// SPDX-FileCopyrightText: 2020 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DQMLGLOBALOBJECT_P_P_H
6#define DQMLGLOBALOBJECT_P_P_H
7
8#include <DObjectPrivate>
9#include <DObject>
10#include <DWindowManagerHelper>
11
12#include "dqmlglobalobject_p.h"
13
14DQUICK_BEGIN_NAMESPACE
15
16class DQMLGlobalObjectPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
17{
18public:
20
21 void ensurePalette();
22 void updatePalettes();
23 void _q_onPaletteChanged();
24 void ensureWebsiteInfo();
25
26 mutable DPlatformThemeProxy *platformTheme = nullptr;
27
28 bool paletteInit = false;
29 QPalette palette;
30 QPalette inactivePalette;
31#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
32 QQuickPalette *quickPalette = nullptr;
33 QQuickPalette *inactiveQuickPalette = nullptr;
34#endif
35 QString deepinWebsiteName;
36 QString deepinWebsiteLink;
37 QString deepinDistributionOrgLogo;
38
39private:
40 D_DECLARE_PUBLIC(DQMLGlobalObject)
41};
42
43DQUICK_END_NAMESPACE
44
45#endif // DQMLGLOBALOBJECT_P_P_H
一个代理类,用于导出dtkgui的DPlatformTheme类的功能到QML使用,功能和接口基本和DPlatformTheme一致
Definition dplatformthemeproxy.h:19
Definition dqmlglobalobject_p_p.h:17
Definition dqmlglobalobject_p.h:114