File: dfloatingbutton.h

package info (click to toggle)
dtkwidget 5.7.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 36,540 kB
  • sloc: cpp: 63,257; ansic: 132; python: 88; sh: 42; makefile: 13
file content (31 lines) | stat: -rw-r--r-- 1,028 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// SPDX-FileCopyrightText: 2017 - 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later

#ifndef DFLOATINGBUTTON_H
#define DFLOATINGBUTTON_H
#include <DDciIcon>
#include <DIconButton>

DWIDGET_BEGIN_NAMESPACE

class DFloatingButton : public DIconButton
{
    Q_OBJECT

public:
    explicit DFloatingButton(QWidget *parent = nullptr);
    explicit DFloatingButton(QStyle::StandardPixmap iconType, QWidget *parent = nullptr);
    explicit DFloatingButton(DStyle::StandardPixmap iconType, QWidget *parent = nullptr);
    explicit DFloatingButton(const QString &text, QWidget *parent = nullptr);
    DFloatingButton(const QIcon& icon, const QString &text = QString(), QWidget *parent = nullptr);
    DFloatingButton(const DDciIcon &icon, const QString &text = QString(), QWidget *parent = nullptr);

protected:
    DStyleOptionButton baseStyleOption() const override;
    void initStyleOption(DStyleOptionButton *option) const override;
};

DWIDGET_END_NAMESPACE

#endif // DFLOATINGBUTTON_H