Skip to content
Permalink
Browse files

Set user style sheet in parameter dialog help.

git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@247 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
cpolymeris@gmail.com
cpolymeris@gmail.com committed Jun 15, 2012
1 parent a36a2a9 commit a5c7b562f6f46628c9d41011aacf088113cb9399
@@ -28,6 +28,7 @@
from sextante.outputs.OutputVector import OutputVector
from sextante.outputs.OutputTable import OutputTable
from sextante.core.WrongHelpFileException import WrongHelpFileException
import os

try:
_fromUtf8 = QtCore.QString.fromUtf8
@@ -74,6 +75,8 @@ def setupUi(self, dialog, alg):
self.tabWidget.addTab(self.scrollArea, "Parameters")
self.verticalLayout.addWidget(self.tabWidget)
self.webView = QtWebKit.QWebView()
cssUrl = QtCore.QUrl(os.path.join(os.path.dirname(__file__), "help", "help.css"))
self.webView.settings().setUserStyleSheetUrl(cssUrl)
html = None
try:
if self.alg.helpFile():
@@ -0,0 +1,9 @@
h1 { color: darkblue; font-size: 1.4em;}
h2 { color: darkblue; font-size: 1.2em; }
table { border: 1px solid darkblue; margin: 20px}
div.author { font-style: italic; font-size: small; }
div.description { text-indent:50px; text-align:justify; margin: 20px; }
dt { font-weight: bold; background-color: lightgrey; border-bottom: 1px solid grey; }
dd { font-style: normal; float: center; }
div.type { font-weight: normal; font-style: italic; float: right;}
div.constraints{ font-style: italic; }

This file was deleted.

0 comments on commit a5c7b56

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