Replace png icons with svg

This commit is contained in:
Chocobo1 2018-07-23 12:28:14 +08:00
parent 866408151c
commit 71dcc76a64
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
206 changed files with 238 additions and 218 deletions

View file

@ -33,6 +33,7 @@
#include <QPixmap>
#include <QSize>
class QIcon;
class QWidget;
namespace Utils
@ -48,6 +49,7 @@ namespace Utils
return (size * screenScalingFactor(widget));
}
QPixmap scaledPixmap(const QIcon &icon, const QWidget *widget, const int height);
QPixmap scaledPixmap(const QString &path, const QWidget *widget, const int height = 0);
QPixmap scaledPixmapSvg(const QString &path, const QWidget *widget, const int baseHeight);
QSize smallIconSize(const QWidget *widget = nullptr);