File: dicon.h

package info (click to toggle)
dtkgui 5.7.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,340 kB
  • sloc: cpp: 19,512; ansic: 34; makefile: 15; sh: 15
file content (23 lines) | stat: -rw-r--r-- 522 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
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later

#ifndef DICON_H
#define DICON_H

#include <QIcon>
#include <dtkgui_global.h>

DGUI_BEGIN_NAMESPACE
class DIcon : public QIcon
{
public:
    explicit DIcon(const QIcon &other);
    virtual ~DIcon();
    QPixmap pixmap(const QSize &size, qreal devicePixelRatio, Mode mode = Normal, State state = Off);

    static QPixmap loadNxPixmap(const QString &fileName);
};

DGUI_END_NAMESPACE
#endif // DICON_H