Skip to content

Commit 931387c

Browse files
author
volayaf
committed
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
1 parent 9c38df1 commit 931387c

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

src/sextante/about/AboutDialog.py

+14-7
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,24 @@ def __init__(self):
1212

1313
def setupUi(self):
1414
self.setObjectName("AboutDialog")
15-
self.resize(500, 400)
15+
self.resize(600, 500)
1616
self.webView = QtWebKit.QWebView()
1717
self.webView.setObjectName("webView")
1818
self.setWindowTitle("About SEXTANTE")
19-
self.horizontalLayout= QtGui.QHBoxLayout()
20-
self.horizontalLayout.setSpacing(2)
21-
self.horizontalLayout.setMargin(0)
22-
self.horizontalLayout.setObjectName("horizontalLayout")
23-
self.horizontalLayout.addWidget(self.webView)
24-
self.setLayout(self.horizontalLayout)
19+
self.verticalLayout= QtGui.QVBoxLayout()
20+
self.verticalLayout.setSpacing(2)
21+
self.verticalLayout.setMargin(0)
22+
self.verticalLayout.setObjectName("horizontalLayout")
23+
self.verticalLayout.addWidget(self.webView)
24+
self.closeButton = QtGui.QPushButton()
25+
self.closeButton.setObjectName("closeButton")
26+
self.closeButton.setText("Close")
27+
QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), self.closeWindow)
28+
self.verticalLayout.addWidget(self.closeButton)
29+
self.setLayout(self.verticalLayout)
2530
filename = os.path.dirname(__file__) + "/about.htm"
2631
url = QtCore.QUrl(filename)
2732
self.webView.load(url)
2833

34+
def closeWindow(self):
35+
self.close()

src/sextante/about/about.htm

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2>SEXTANTE for QGIS</h2>
1414
<li>Julien Malik (Orfeo Toolbox connectors)</li>
1515
</ul>
1616
</p>
17-
<p>You are currently using SEXTANTE v1.0</p>
17+
<p>You are currently using SEXTANTE v1.0.4</p>
1818
<p>This software is distributed under the terms of the GNU GPL License v2.
1919
<p>For more information, please visit our website at <a href="http://sextantegis.com">http://sextantegis.com</a></p>
2020
</body>

0 commit comments

Comments
 (0)