DtkWidget
5.6.0.2
DTK Widget module
src
widgets
private
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
12
DWIDGET_BEGIN_NAMESPACE
13
14
class
DAlertControlPrivate
:
public
DTK_CORE_NAMESPACE::DObjectPrivate
15
{
16
Q_DECLARE_PUBLIC(
DAlertControl
)
17
public
:
18
DAlertControlPrivate
(
DAlertControl
*q);
19
20
void
updateTooltipPos();
21
22
private
:
23
bool
isAlert =
false
;
24
QPointer<DToolTip>
tooltip;
25
QPointer<DFloatingWidget>
frame;
26
QWidget *follower{
nullptr
};
27
QWidget *target{
nullptr
};
28
QColor alertColor;
29
Qt::Alignment
alignment{
Qt::AlignLeft
};
30
QTimer
timer;
31
};
32
33
DWIDGET_END_NAMESPACE
34
35
#endif
// DALERTCONTROL_P_H
Dtk::Widget::DAlertControlPrivate
Definition:
dalertcontrol_p.h:15
Dtk::Widget::DAlertControl
Definition:
dalertcontrol.h:17
QPointer
Qt::Alignment
typedef Alignment
QTimer
制作者
1.9.3