mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
Add helper function to create pixmaps from assets with the right resolution for hdpi screens
This commit is contained in:
@ -87,3 +87,8 @@ QAction *YACReader::actionWithCustomIcon(const QIcon &icon, QAction *action)
|
||||
|
||||
return a;
|
||||
}
|
||||
|
||||
QPixmap YACReader::hdpiPixmap(const QString &file, QSize size)
|
||||
{
|
||||
return QIcon(file).pixmap(size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user