mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00

Modify project to pass the REUSE check Log: Modify project to pass the REUSE check Task: https://pms.uniontech.com/task-view-185215.html Change-Id: Ie954cf985f16c1a243bfc912aa7458c6e85ce9de
24 lines
673 B
C++
24 lines
673 B
C++
// SPDX-FileCopyrightText: 2011 - 2022 UnionTech Software Technology Co., Ltd.
|
|
//
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
#ifndef IMAGEUTIL_H
|
|
#define IMAGEUTIL_H
|
|
|
|
#include <QWidget>
|
|
#include <QPixmap>
|
|
#include <QSvgRenderer>
|
|
#include <QApplication>
|
|
|
|
class QCursor;
|
|
|
|
class ImageUtil
|
|
{
|
|
public:
|
|
static const QPixmap loadSvg(const QString &iconName, const QString &localPath, const int size, const qreal ratio);
|
|
static const QPixmap loadSvg(const QString &iconName, const QSize size, const qreal ratio = qApp->devicePixelRatio());
|
|
static QCursor* loadQCursorFromX11Cursor(const char* theme, const char* cursorName, int cursorSize);
|
|
};
|
|
|
|
#endif // IMAGEUTIL_H
|