PICARD-817: Enable high DPI support for Picard

Picard with Qt5 now supports high-dpi displays. To render icons for
higher resolutions, simply add a 2x scaled png files along with the
normal file with the name as image@2x.png

See http://blog.qt.io/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/
for more details

Fixes: https://tickets.metabrainz.org/browse/PICARD-817
This commit is contained in:
Sambhav Kothari
2017-05-10 23:19:08 +05:30
parent 458839d8f7
commit 868432badc

View File

@@ -105,9 +105,12 @@ class Tagger(QtWidgets.QApplication):
# can use it to look up the app
QtWidgets.QApplication.__init__(self, ['MusicBrainz-Picard'] + unparsed_args)
self.__class__.__instance = self
config._setup(self, picard_args.config_file)
# Allow High DPI Support
self.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps)
self.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
self._cmdline_files = picard_args.FILE
self._autoupdate = autoupdate
self._debug = False