DtkGui
DTK Gui module
载入中...
搜索中...
未找到
dtaskbarcontrol.h
1
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2
//
3
// SPDX-License-Identifier: LGPL-3.0-or-later
4
5
#ifndef DTASKBARCONTROL_H
6
#define DTASKBARCONTROL_H
7
8
#include <dtkgui_global.h>
9
10
#include <QObject>
11
#include <QColor>
12
13
#include <DObject>
14
15
DGUI_BEGIN_NAMESPACE
16
class
DTaskbarControlPrivate;
17
18
class
DTaskbarControl
:
public
QObject,
public
DTK_CORE_NAMESPACE::DObject
19
{
20
Q_OBJECT
21
22
public
:
23
explicit
DTaskbarControl
(QObject *parent =
nullptr
);
24
~DTaskbarControl
();
25
26
void
setProgress(
bool
progressVisible,
double
progress);
27
void
setCounter(
bool
counterVisible,
int
counter);
28
int
counter()
const
;
29
void
setCounterVisible(
bool
counterVisible);
30
bool
counterVisible()
const
;
31
void
setUrgency(
bool
val);
32
33
Q_SIGNALS:
34
void
counterChanged(
int
counter);
35
void
counterVisibleChanged(
bool
visible);
36
void
progressChanged(
double
progress);
37
void
progressVisibleChanged(
bool
visible);
38
39
protected
:
40
virtual
void
sendMessage(
const
QVariantMap ¶ms);
41
42
private
:
43
D_DECLARE_PRIVATE(
DTaskbarControl
)
44
};
45
46
47
48
DGUI_END_NAMESPACE
49
50
#endif
// DTASKBARCONTROL_H
Dtk::Gui::DTaskbarControl
DTaskbarControl提供了一个Launcher API接口,用于方便应用程序控制taskbar进度条,设置当前任务数量.
Definition
dtaskbarcontrol.h:19
include
util
dtaskbarcontrol.h
文档生成时间:2024-11-15-05:50 +00
Doxygen Version
1.9.8
制作者:deepin doc doc go SIG
文档使用CC-BY-4.0共享