Skip to content
Permalink
Browse files

[processing] fixed scrolling to anchor in help pages

fixes #13506
  • Loading branch information
volaya committed Oct 16, 2015
1 parent 51a692d commit 545a90de8ff7fce4a1c42bc84d289934c0502b3a
Showing with 14 additions and 0 deletions.
  1. +14 −0 python/plugins/processing/gui/AlgorithmDialogBase.py
@@ -77,14 +77,28 @@ def __init__(self, alg):
if isText:
self.txtHelp.setHtml(algHelp)
else:
self.txtHelp.settings().clearMemoryCaches()
self.tabWidget.setTabText(2, self.tr("Help (loading...)"))
self.tabWidget.setTabEnabled(2, False)
self.txtHelp.loadFinished.connect(self.loadFinished)
self.tabWidget.currentChanged.connect(self.loadHelp)
self.txtHelp.load(algHelp)
self.algHelp = algHelp
except:
self.txtHelp.setHtml(
self.tr('<h2>Could not open help file :-( </h2>'))

self.showDebug = ProcessingConfig.getSetting(
ProcessingConfig.SHOW_DEBUG_IN_DIALOG)

def loadFinished(self):
self.tabWidget.setTabEnabled(2, True)
self.tabWidget.setTabText(2, self.tr("Help"))

def loadHelp(self, i):
if i == 2:
self.txtHelp.findText(self.alg.name)

def closeEvent(self, evt):
self.settings.setValue("/Processing/dialogBase", self.saveGeometry())

0 comments on commit 545a90d

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