| 1 |
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: LGPL-3.0-or-later |
| 4 |
|
| 5 |
#ifndef DICON_H |
| 6 |
#define DICON_H |
| 7 |
|
| 8 |
#include <QIcon> |
| 9 |
#include <dtkgui_global.h> |
| 10 |
|
| 11 |
DGUI_BEGIN_NAMESPACE |
| 12 |
class DIcon : public QIcon |
| 13 |
{ |
| 14 |
public: |
| 15 |
explicit DIcon(const QIcon &other); |
| 16 |
virtual ~DIcon(); |
| 17 |
QPixmap pixmap(const QSize &size, qreal devicePixelRatio, Mode mode = Normal, State state = Off); |
| 18 |
|
| 19 |
static QPixmap loadNxPixmap(const QString &fileName); |
| 20 |
}; |
| 21 |
|
| 22 |
DGUI_END_NAMESPACE |
| 23 |
#endif // DICON_H |