DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dabstractdialogprivate_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 DABSTRACTDIALOG_P_H
6#define DABSTRACTDIALOG_P_H
7
8#include <DAbstractDialog>
9
10#include <DObjectPrivate>
11
12class QLabel;
13class QBoxLayout;
14
15DWIDGET_BEGIN_NAMESPACE
16
17class DPlatformWindowHandle;
18class DBlurEffectWidget;
19
20class DAbstractDialogPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
21{
22protected:
24
25 QRect getParentGeometry() const;
26
27private:
28 void init(bool blurIfPossible);
29
30 bool mouseMoved = false;
32 bool mousePressed = false;
33
34 QPoint dragPosition;
35 DAbstractDialog::DisplayPosition displayPosition = DAbstractDialog::Center;
36
37 DPlatformWindowHandle *handle = Q_NULLPTR;
38 DBlurEffectWidget *bgBlurWidget = Q_NULLPTR;
39
40 Q_DECLARE_PUBLIC(DAbstractDialog)
41};
42
43DWIDGET_END_NAMESPACE
44
45#endif // DABSTRACTDIALOG_P_H
46
Definition dabstractdialogprivate_p.h:21
可以使用 DAbstractDialog 类创建符合 DDE 风格的对话框窗口.
Definition dabstractdialog.h:23
DisplayPosition
对话框显示位置
Definition dabstractdialog.h:29
用于实现主窗口或控件背景的实时模糊效果.
Definition dblureffectwidget.h:17
Definition dplatformwindowhandle.h:19