1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-01-05 12:56:52 +01:00

Set hiDPI options

This commit is contained in:
Jonas Kvinge 2020-02-25 01:15:05 +01:00
parent 2e0f7b367f
commit 97f9e142b4

View File

@ -177,6 +177,9 @@ int main(int argc, char* argv[]) {
QCoreApplication::setLibraryPaths(QStringList() << QCoreApplication::applicationDirPath() + "/" + USE_BUNDLE_DIR);
#endif
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#ifndef Q_OS_MACOS
// Gnome on Ubuntu has menu icons disabled by default. I think that's a bad idea, and makes some menus in Strawberry look confusing.
QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);