Skip to content
Permalink
Browse files
added close button to about dialog
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@108 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Apr 17, 2012
1 parent 9c38df1 commit 931387cf60a0d4a546d1c9a986ba588d99ebb87d
Showing with 15 additions and 8 deletions.
  1. +14 −7 src/sextante/about/AboutDialog.py
  2. +1 −1 src/sextante/about/about.htm
@@ -12,17 +12,24 @@ def __init__(self):

def setupUi(self):
self.setObjectName("AboutDialog")
self.resize(500, 400)
self.resize(600, 500)
self.webView = QtWebKit.QWebView()
self.webView.setObjectName("webView")
self.setWindowTitle("About SEXTANTE")
self.horizontalLayout= QtGui.QHBoxLayout()
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.horizontalLayout.addWidget(self.webView)
self.setLayout(self.horizontalLayout)
self.verticalLayout= QtGui.QVBoxLayout()
self.verticalLayout.setSpacing(2)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName("horizontalLayout")
self.verticalLayout.addWidget(self.webView)
self.closeButton = QtGui.QPushButton()
self.closeButton.setObjectName("closeButton")
self.closeButton.setText("Close")
QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), self.closeWindow)
self.verticalLayout.addWidget(self.closeButton)
self.setLayout(self.verticalLayout)
filename = os.path.dirname(__file__) + "/about.htm"
url = QtCore.QUrl(filename)
self.webView.load(url)

def closeWindow(self):
self.close()
@@ -14,7 +14,7 @@ <h2>SEXTANTE for QGIS</h2>
<li>Julien Malik (Orfeo Toolbox connectors)</li>
</ul>
</p>
<p>You are currently using SEXTANTE v1.0</p>
<p>You are currently using SEXTANTE v1.0.4</p>
<p>This software is distributed under the terms of the GNU GPL License v2.
<p>For more information, please visit our website at <a href="http://sextantegis.com">http://sextantegis.com</a></p>
</body>

0 comments on commit 931387c

Please sign in to comment.