DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dfloatingbutton.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DFLOATINGBUTTON_H
6#define DFLOATINGBUTTON_H
7#include <DDciIcon>
8#include <DIconButton>
9
10DWIDGET_BEGIN_NAMESPACE
11
13{
14 Q_OBJECT
15
16public:
17 explicit DFloatingButton(QWidget *parent = nullptr);
18 explicit DFloatingButton(QStyle::StandardPixmap iconType, QWidget *parent = nullptr);
19 explicit DFloatingButton(DStyle::StandardPixmap iconType, QWidget *parent = nullptr);
20 explicit DFloatingButton(const QString &text, QWidget *parent = nullptr);
21 DFloatingButton(const QIcon& icon, const QString &text = QString(), QWidget *parent = nullptr);
22 DFloatingButton(const DDciIcon &icon, const QString &text = QString(), QWidget *parent = nullptr);
23
24protected:
25 DStyleOptionButton baseStyleOption() const override;
26 void initStyleOption(DStyleOptionButton *option) const override;
27};
28
29DWIDGET_END_NAMESPACE
30
31#endif // DFLOATINGBUTTON_H
Definition dfloatingbutton.h:13
按钮的图标
Definition diconbutton.h:24
Dtk 样式统一的按钮样式配置.
Definition dstyleoption.h:58
StandardPixmap
Definition dstyle.h:188