mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 04:49:47 -07:00
parent
23f7275bd5
commit
4555a46e5d
2 changed files with 0 additions and 10 deletions
|
@ -39,7 +39,6 @@
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QIcon>
|
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QPixmapCache>
|
#include <QPixmapCache>
|
||||||
#include <QPoint>
|
#include <QPoint>
|
||||||
|
@ -59,13 +58,6 @@
|
||||||
#include "base/utils/fs.h"
|
#include "base/utils/fs.h"
|
||||||
#include "base/utils/version.h"
|
#include "base/utils/version.h"
|
||||||
|
|
||||||
QPixmap Utils::Gui::scaledPixmap(const QIcon &icon, const int height)
|
|
||||||
{
|
|
||||||
Q_ASSERT(height > 0);
|
|
||||||
|
|
||||||
return icon.pixmap(height);
|
|
||||||
}
|
|
||||||
|
|
||||||
QPixmap Utils::Gui::scaledPixmap(const Path &path, const int height)
|
QPixmap Utils::Gui::scaledPixmap(const Path &path, const int height)
|
||||||
{
|
{
|
||||||
Q_ASSERT(height >= 0);
|
Q_ASSERT(height >= 0);
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
|
|
||||||
#include "base/pathfwd.h"
|
#include "base/pathfwd.h"
|
||||||
|
|
||||||
class QIcon;
|
|
||||||
class QPixmap;
|
class QPixmap;
|
||||||
class QPoint;
|
class QPoint;
|
||||||
class QSize;
|
class QSize;
|
||||||
|
@ -44,7 +43,6 @@ namespace Utils::Gui
|
||||||
{
|
{
|
||||||
bool isDarkTheme();
|
bool isDarkTheme();
|
||||||
|
|
||||||
QPixmap scaledPixmap(const QIcon &icon, int height);
|
|
||||||
QPixmap scaledPixmap(const Path &path, int height = 0);
|
QPixmap scaledPixmap(const Path &path, int height = 0);
|
||||||
|
|
||||||
QSize smallIconSize(const QWidget *widget = nullptr);
|
QSize smallIconSize(const QWidget *widget = nullptr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue