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
14
DWIDGET_BEGIN_NAMESPACE
15
16
class
DCircleProgressPrivate
:
public
DTK_CORE_NAMESPACE::DObjectPrivate
17
{
18
Q_DECLARE_PUBLIC(
DCircleProgress
)
19
20
public
:
21
DCircleProgressPrivate
(
DCircleProgress
*q);
22
23
private
:
24
void
paint(QPainter *painter);
25
26
private
:
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
39
DWIDGET_END_NAMESPACE
40
41
#endif
// DCIRCLEPROGRESS_P_H
Dtk::Widget::DCircleProgressPrivate
Definition
dcircleprogress_p.h:17
Dtk::Widget::DCircleProgress
可以使用 DCircleProgress 类快速创建环形进度条控件. DCircleProgress 提供了一个可控制颜色并可以包含文字显示的环形进度条控件。可以快速创建底色为 backgroundCo...
Definition
dcircleprogress.h:20
dcircleprogress.h
src
widgets
private
dcircleprogress_p.h
文档生成时间:2024-11-15-05:51 +00
Doxygen Version
1.9.8
制作者:deepin doc doc go SIG
文档使用CC-BY-4.0共享