DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dcircleprogress_p.h
1// SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DCIRCLEPROGRESS_P_H
6#define DCIRCLEPROGRESS_P_H
7
8#include <dcircleprogress.h>
9
10#include <DObjectPrivate>
11
12#include <QPainter>
13
14DWIDGET_BEGIN_NAMESPACE
15
16class DCircleProgressPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
17{
18 Q_DECLARE_PUBLIC(DCircleProgress)
19
20public:
22
23private:
24 void paint(QPainter *painter);
25
26private:
27 int m_lineWidth = 3;
28 int m_currentValue = 40;
29 int m_minmumValue = 0;
30 int m_maximumValue = 100;
31
32 QLabel m_topLabel;
33 QLabel m_bottomLabel;
34
35 QColor m_chunkColor = Qt::cyan;
36 QColor m_backgroundColor = Qt::darkCyan;
37};
38
39DWIDGET_END_NAMESPACE
40
41#endif // DCIRCLEPROGRESS_P_H
Definition dcircleprogress_p.h:17
可以使用 DCircleProgress 类快速创建环形进度条控件. DCircleProgress 提供了一个可控制颜色并可以包含文字显示的环形进度条控件。可以快速创建底色为 backgroundCo...
Definition dcircleprogress.h:20