Skip to content

Commit

Permalink
changed size of close buttons
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@136 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Apr 20, 2012
1 parent 319e082 commit af6131d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
8 changes: 7 additions & 1 deletion src/sextante/about/AboutDialog.py
Expand Up @@ -20,8 +20,14 @@ def setupUi(self):
self.verticalLayout.addWidget(self.webView)
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.addStretch(1000)
self.horizontalLayout.addWidget(self.closeButton)
QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), self.closeWindow)
self.verticalLayout.addWidget(self.closeButton)
self.verticalLayout.addLayout(self.horizontalLayout)
self.setLayout(self.verticalLayout)
filename = os.path.dirname(__file__) + "/about.htm"
url = QtCore.QUrl(filename)
Expand Down
1 change: 0 additions & 1 deletion src/sextante/gui/CrsSelectionPanel.py
@@ -1,5 +1,4 @@
from PyQt4 import QtGui, QtCore
from sextante.core.SextanteUtils import SextanteUtils
from sextante.gui.CrsSelectionDialog import CrsSelectionDialog

class CrsSelectionPanel(QtGui.QWidget):
Expand Down
7 changes: 6 additions & 1 deletion src/sextante/gui/HistoryDialog.py
Expand Up @@ -32,8 +32,13 @@ def setupUi(self):
self.text.setReadOnly(True)
self.closeButton = QtGui.QPushButton()
self.closeButton.setText("Close")
self.horizontalLayout= QtGui.QHBoxLayout()
self.horizontalLayout.setSpacing(2)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.addStretch(1000)
self.horizontalLayout.addWidget(self.closeButton)
QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), self.closeWindow)
self.verticalLayout.addWidget(self.closeButton)
self.verticalLayout.addLayout(self.horizontalLayout)
self.setWindowTitle("History")
self.setLayout(self.verticalLayout)
QtCore.QMetaObject.connectSlotsByName(self)
Expand Down
7 changes: 6 additions & 1 deletion src/sextante/gui/ResultsDialog.py
Expand Up @@ -32,12 +32,17 @@ def setupUi(self):
self.horizontalLayout.addWidget(self.webView)
self.closeButton = QtGui.QPushButton()
self.closeButton.setText("Close")
self.horizontalLayout2= QtGui.QHBoxLayout()
self.horizontalLayout2.setSpacing(2)
self.horizontalLayout2.setMargin(0)
self.horizontalLayout2.addStretch(1000)
self.horizontalLayout2.addWidget(self.closeButton)
QObject.connect(self.closeButton, QtCore.SIGNAL("clicked()"), self.closeWindow)
self.verticalLayout= QtGui.QVBoxLayout()
self.verticalLayout.setSpacing(2)
self.verticalLayout.setMargin(0)
self.verticalLayout.addLayout(self.horizontalLayout)
self.verticalLayout.addWidget(self.closeButton)
self.verticalLayout.addLayout(self.horizontalLayout2)
self.setLayout(self.verticalLayout)
QtCore.QMetaObject.connectSlotsByName(self)
if self.lastUrl:
Expand Down

0 comments on commit af6131d

Please sign in to comment.