Skip to content

Commit

Permalink
added close button to about dialog
Browse files Browse the repository at this point in the history
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 931387c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
21 changes: 14 additions & 7 deletions src/sextante/about/AboutDialog.py
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion src/sextante/about/about.htm
Expand Up @@ -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>
Expand Down

0 comments on commit 931387c

Please sign in to comment.