mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-06 16:44:06 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user