DtkWidget 5.6.0.2
DTK Widget module
dwindowclosebutton.h
1// SPDX-FileCopyrightText: 2015 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DWINDOWCLOSEBUTTON_H
6#define DWINDOWCLOSEBUTTON_H
7
8#include <DIconButton>
9
10DWIDGET_BEGIN_NAMESPACE
11
12class LIBDTKWIDGETSHARED_EXPORT DWindowCloseButton : public DIconButton
13{
14 Q_OBJECT
15public:
16 DWindowCloseButton(QWidget * parent = 0);
17
18 QSize sizeHint() const override;
19
20protected:
21 void initStyleOption(DStyleOptionButton *option) const override;
22};
23
24DWIDGET_END_NAMESPACE
25
26#endif // DWINDOWCLOSEBUTTON_H
Definition: diconbutton.h:24
Dtk 样式统一的按钮样式配置.
Definition: dstyleoption.h:55
The DWindowCloseButton class is used as the unified window close button.
Definition: dwindowclosebutton.h:13