Skip to content

Commit

Permalink
added #5460
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@143 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Apr 23, 2012
1 parent 732709c commit a8a4c9d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/sextante/gui/HTMLViewerDialog.py
Expand Up @@ -13,15 +13,27 @@ def __init__(self, filename):
def setupUi(self):
self.resize(600, 500)
self.webView = QtWebKit.QWebView()
self.setWindowTitle("")
self.setWindowTitle("Help")
self.closeButton = QtGui.QPushButton()
self.closeButton.setText("Close")
self.closeButton.setMaximumWidth(150)
self.horizontalLayout= QtGui.QHBoxLayout()
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.addWidget(self.webView)
self.setLayout(self.horizontalLayout)
self.horizontalLayout.addStretch(1000)
self.horizontalLayout.addWidget(self.closeButton)
self.verticalLayout= QtGui.QVBoxLayout()
self.verticalLayout.setSpacing(2)
self.verticalLayout.setMargin(0)
self.verticalLayout.addWidget(self.webView)
self.verticalLayout.addLayout(self.horizontalLayout)
self.setLayout(self.verticalLayout)
QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), self.closeWindow)
try:
url = QtCore.QUrl(self.filename)
self.webView.load(url)
except:
pass

def closeWindow(self):
self.close()

0 comments on commit a8a4c9d

Please sign in to comment.