This repository has been archived by the owner on May 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdtk-widget-dcoloredprogressbar.html
104 lines (104 loc) · 6.09 KB
/
dtk-widget-dcoloredprogressbar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- dcoloredprogressbar.cpp -->
<title>DColoredProgressBar Class | Dtk Reference Documentation 1.0.0</title>
<link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
<script type="text/javascript">
document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
// loading style sheet breaks anchors that were jumped to before
// so force jumping to anchor again
setTimeout(function() {
var anchor = location.hash;
// need to jump to different anchor first (e.g. none)
location.hash = "#";
setTimeout(function() {
location.hash = anchor;
}, 0);
}, 0);
</script>
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li><a href="index.html">Dtk Doc</a></li>
<li><a href="index.html">Dtk Reference Documentation</a></li>
<li>DColoredProgressBar</li>
<li id="buildversion"><a href="index.html">Qt 5.15.2 Reference Documentation</a></li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">DColoredProgressBar Class</h1>
<span class="small-subtitle">class <a href="dtk.html">Dtk</a>::<a href="dtk-widget.html">Widget</a>::DColoredProgressBar</span>
<!-- $$$DColoredProgressBar-brief -->
<p>DColoredProgressBar is the same as <a href="http://doc.qt.io/qt-5/qprogressbar.html">QProgressBar</a>, except it can change its appearance depending on the value displayed. <a href="#details">More...</a></p>
<!-- @@@DColoredProgressBar -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <DColoredProgressBar></span>
</td></tr></table></div><ul>
<li><a href="dtk-widget-dcoloredprogressbar-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="dtk-widget-dcoloredprogressbar.html#addThreshold">addThreshold</a></b>(int <i>threshold</i>, QBrush <i>brush</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="dtk-widget-dcoloredprogressbar.html#removeThreshold">removeThreshold</a></b>(int <i>threshold</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList<int> </td><td class="memItemRight bottomAlign"><b><a href="dtk-widget-dcoloredprogressbar.html#thresholds">thresholds</a></b>() const</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$DColoredProgressBar-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@DColoredProgressBar -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$addThreshold[overload1]$$$addThresholdintQBrush -->
<h3 class="fn" id="addThreshold"><a name="addThreshold"></a><span class="type">void</span> DColoredProgressBar::<span class="name">addThreshold</span>(<span class="type">int</span> <i>threshold</i>, <span class="type"><a href="http://doc.qt.io/qt-5/qbrush.html">QBrush</a></span> <i>brush</i>)</h3>
<p>DColoredProgressBar::addThreshold 添加一个新的阈值,并指定达到该值后要使用的画笔。如果一个相同值的阈值已经存在,它将被覆盖。</p>
<p>DColoredProgressBar::addThreshold adds a new threshold value and specifies the brush to use once that value is reached.</p>
<p>If a threshold of the same value already exists, it will be overwritten. <i>brush</i> 当前显示的值不小于 threshold且小于下一个阈值时使用的画笔。 <i>brush</i> The brush to use when the currently displayed value is no less than and less than the next threshold value. <i>threshold</i> 使用此画笔的最小值。 <i>threshold</i> Minimum value for this brush to be used.</p>
<!-- @@@addThreshold -->
<!-- $$$removeThreshold[overload1]$$$removeThresholdint -->
<h3 class="fn" id="removeThreshold"><a name="removeThreshold"></a><span class="type">void</span> DColoredProgressBar::<span class="name">removeThreshold</span>(<span class="type">int</span> <i>threshold</i>)</h3>
<p>DColoredProgressBar::removeThreshold removes a threshold.</p>
<p>DColoredProgressBar::removeThreshold 移除一个threshold</p>
<p><i>threshold</i> The threshold value to remove. <i>threshold</i> 被移除的threshold值</p>
<!-- @@@removeThreshold -->
<!-- $$$thresholds[overload1]$$$thresholds -->
<h3 class="fn" id="thresholds"><a name="thresholds"></a><span class="type"><a href="http://doc.qt.io/qt-5/qlist.html">QList</a></span><<span class="type">int</span>> DColoredProgressBar::<span class="name">thresholds</span>() const</h3>
<p>DColoredProgressBar::threadsholds gets all threshold values.</p>
<p>DColoredProgressBar::thresholds 获取所有的thresholds值</p>
<p>Returns A list of threshold values. Returns 返回一个 threshold值的列表</p>
<!-- @@@thresholds -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2020 The Qt Company Ltd.
Documentation contributions included herein are the copyrights of
their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>