mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 13:28:50 +03:00
parent
5c06d0aa75
commit
f2b4aa6570
3 changed files with 5 additions and 7 deletions
|
@ -71,7 +71,7 @@ AboutDialog::AboutDialog(QWidget *parent)
|
|||
, tr("Bug Tracker:"));
|
||||
m_ui->labelAbout->setText(aboutText);
|
||||
|
||||
m_ui->labelMascot->setPixmap(Utils::Gui::scaledPixmap(Path(u":/icons/mascot.png"_s), this));
|
||||
m_ui->labelMascot->setPixmap(Utils::Gui::scaledPixmap(Path(u":/icons/mascot.png"_s)));
|
||||
|
||||
// Thanks
|
||||
if (const auto readResult = Utils::IO::readFile(Path(u":/thanks.html"_s), -1, QIODevice::Text)
|
||||
|
|
|
@ -57,17 +57,15 @@
|
|||
#include "base/utils/fs.h"
|
||||
#include "base/utils/version.h"
|
||||
|
||||
QPixmap Utils::Gui::scaledPixmap(const QIcon &icon, const QWidget *widget, const int height)
|
||||
QPixmap Utils::Gui::scaledPixmap(const QIcon &icon, const int height)
|
||||
{
|
||||
Q_UNUSED(widget); // TODO: remove it
|
||||
Q_ASSERT(height > 0);
|
||||
|
||||
return icon.pixmap(height);
|
||||
}
|
||||
|
||||
QPixmap Utils::Gui::scaledPixmap(const Path &path, const QWidget *widget, const int height)
|
||||
QPixmap Utils::Gui::scaledPixmap(const Path &path, const int height)
|
||||
{
|
||||
Q_UNUSED(widget);
|
||||
Q_ASSERT(height >= 0);
|
||||
|
||||
const QPixmap pixmap {path.data()};
|
||||
|
|
|
@ -40,8 +40,8 @@ namespace Utils::Gui
|
|||
{
|
||||
bool isDarkTheme();
|
||||
|
||||
QPixmap scaledPixmap(const QIcon &icon, const QWidget *widget, int height);
|
||||
QPixmap scaledPixmap(const Path &path, const QWidget *widget, int height = 0);
|
||||
QPixmap scaledPixmap(const QIcon &icon, int height);
|
||||
QPixmap scaledPixmap(const Path &path, int height = 0);
|
||||
|
||||
QSize smallIconSize(const QWidget *widget = nullptr);
|
||||
QSize mediumIconSize(const QWidget *widget = nullptr);
|
||||
|
|
Loading…
Reference in a new issue