Skip to content

Commit

Permalink
[processing] try to fix HiDPI issue with Help tab
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 11, 2016
1 parent 70f26b6 commit 716664e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/plugins/processing/gui/AlgorithmDialogBase.py
Expand Up @@ -30,7 +30,7 @@

from PyQt4 import uic
from PyQt4.QtCore import QCoreApplication, QSettings, QByteArray, SIGNAL, QUrl
from PyQt4.QtGui import QApplication, QDialogButtonBox
from PyQt4.QtGui import QApplication, QDialogButtonBox, QDesktopWidget

from qgis.utils import iface
from qgis.core import *
Expand Down Expand Up @@ -69,6 +69,10 @@ def __init__(self, alg):

self.setWindowTitle(AlgorithmClassification.getDisplayName(self.alg))

desktop = QDesktopWidget()
if desktop.physicalDpiX() > 96:
self.textHelp.setZoomFactor(desktop.physicalDpiX() / 96)

algHelp = self.alg.shortHelp()
if algHelp is None:
self.textShortHelp.setVisible(False)
Expand Down

0 comments on commit 716664e

Please sign in to comment.