1 | // SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd. |
2 | // |
3 | // SPDX-License-Identifier: GPL-3.0-or-later |
4 | |
5 | #ifndef DETAILSBUTTON_H |
6 | #define DETAILSBUTTON_H |
7 | |
8 | #include <QAbstractButton> |
9 | |
10 | class DetailsButtonPrivate; |
11 | class DetailsButton : public QAbstractButton |
12 | { |
13 | Q_OBJECT |
14 | class DetailsButtonPrivate *const d; |
15 | public: |
16 | explicit DetailsButton(QWidget *parent = nullptr); |
17 | virtual ~DetailsButton() override; |
18 | |
19 | protected: |
20 | void paintEvent(QPaintEvent *event) override; |
21 | void enterEvent(QEvent *event) override; |
22 | void leaveEvent(QEvent *event) override; |
23 | }; |
24 | |
25 | #endif // DETAILSBUTTON_H |
26 | |