Commit 0ad0ee58 authored by Michael Pyne's avatar Michael Pyne

Enable Qt support for High DPI icons.

As submitted by Guo Yunhe <i@guoyunhe.me> on kde-multimedia.

In my testing this only applies with QT_AUTO_SCREEN_SCALE_FACTOR
environment variable enabled, but does indeed allow for many (not all)
pixmaps to automatically load high-res versions (such as from
KIconLoader).

I consider this a bugfix and the support is non-invasive, so applying to
18.12 and will merge to master separately.

Note that the cover art and slider art is still suboptimal.
parent 506af068
......@@ -111,6 +111,8 @@ int main(int argc, char *argv[])
KNotification::event("dock_mode",i18n("JuK Docked"), message);
}
a.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
return a.exec();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment