Skip to content
Permalink
Browse files

[processing] try to fix HiDPI issue with Help tab

  • Loading branch information
alexbruy committed Jan 11, 2016
1 parent 70f26b6 commit 716664e74939f3dd9ca531244e3b022b315d1e9e
Showing with 5 additions and 1 deletion.
  1. +5 −1 python/plugins/processing/gui/AlgorithmDialogBase.py
@@ -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 *
@@ -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)

0 comments on commit 716664e

Please sign in to comment.
You can’t perform that action at this time.