DtkDeclarative
DTK Declarative module
载入中...
搜索中...
未找到
dquickdciiconimage_p_p.h
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DQUICKDCIICONIMAGE_P_P_H
6#define DQUICKDCIICONIMAGE_P_P_H
7
8#include "dquickiconimage_p.h"
9#include "dqmlglobalobject_p.h"
10#include "dquickdciiconimage_p.h"
11#include "dquickiconimage_p_p.h"
12
13#include <dobject_p.h>
14#include <DDciIconPalette>
15#include <DDciIconPlayer>
16
17DQUICK_BEGIN_NAMESPACE
18class DQuickDciIconImageItemPrivate;
20{
21 Q_DECLARE_PUBLIC(DQuickIconImage)
22
23public:
25 void maybeUpdateUrl();
26 void play(int mode);
27 QUrlQuery getUrlQuery();
28
29 void updatePlayer();
30 void updatePlayerIconSize();
31private:
32 DQuickDciIconImagePrivate *parentPriv;
33 DDciIconPlayer *player = nullptr;
34 QString iconPathCache;
35};
36
37class DQuickDciIconImagePrivate : public DCORE_NAMESPACE::DObjectPrivate
38{
39 Q_DECLARE_PUBLIC(DQuickDciIconImage)
40
41public:
43 void layout();
44 void updateImageSourceUrl();
45 void play(DQMLGlobalObject::ControlState mode);
46
47 DDciIconPalette palette;
48 DQuickIconImage *imageItem;
49 DQMLGlobalObject::ControlState mode = DQMLGlobalObject::NormalState;
50 DGuiApplicationHelper::ColorType theme = DGuiApplicationHelper::ColorType::LightType;
51 bool fallbackToQIcon = true;
52};
53
54DQUICK_END_NAMESPACE
55#endif // DQUICKDCIICONIMAGE_P_P_H
Definition dquickdciiconimage_p_p.h:20
Definition dquickdciiconimage_p_p.h:38
Definition dquickdciiconimage_p.h:23
Definition dquickiconimage_p_p.h:20
Definition dquickiconimage_p.h:23