DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dalertcontrol_p.h
1// SPDX-FileCopyrightText: 2020 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DALERTCONTROL_P_H
6#define DALERTCONTROL_P_H
7#include <DAlertControl>
8#include <DObjectPrivate>
9#include <QPointer>
10#include <QTimer>
11
12DWIDGET_BEGIN_NAMESPACE
13
14class DAlertControlPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
15{
16 Q_DECLARE_PUBLIC(DAlertControl)
17public:
19
20 void updateTooltipPos();
21
22private:
23 bool isAlert = false;
24 QPointer<DToolTip> tooltip;
25 QPointer<DFloatingWidget> frame;
26 QPointer<QWidget> follower;
27 QPointer<QWidget> target;
28 QColor alertColor;
29 Qt::Alignment alignment{Qt::AlignLeft};
30 QTimer timer;
31};
32
33DWIDGET_END_NAMESPACE
34
35#endif // DALERTCONTROL_P_H
Definition dalertcontrol_p.h:15
此类是提供了应用程序的警告对话框, 符合Deepin风格
Definition dalertcontrol.h:17