DtkWidget
DTK Widget module
载入中...
搜索中...
未找到
dsuggestbutton.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DSUGGESTBUTTON_H
6#define DSUGGESTBUTTON_H
7
8#include <dtkwidget_global.h>
9#include <DObject>
10
11#include <QPushButton>
12
13DWIDGET_BEGIN_NAMESPACE
14
15class LIBDTKWIDGETSHARED_EXPORT DSuggestButton : public QPushButton, public DTK_CORE_NAMESPACE::DObject
16{
17 Q_OBJECT
18
19public:
20 explicit DSuggestButton(QWidget *parent = nullptr);
21 explicit DSuggestButton(const QString &text, QWidget *parent = nullptr);
22
23protected:
24 void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
25};
26
27DWIDGET_END_NAMESPACE
28
29#endif // DSUGGESTBUTTON_H
这个控件提供了DTK中默认的建议按钮样式.点击按钮后会显示相应的建议信息
Definition dsuggestbutton.h:16