mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-22 15:14:44 +00:00
Added close button in options dialog
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3911 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
2e1bd0236c
commit
a1d36611a0
3 changed files with 22 additions and 4 deletions
|
|
@ -194,6 +194,7 @@ class LinkCheckerOptions (QtGui.QDialog, Ui_Options):
|
|||
super(LinkCheckerOptions, self).__init__(parent)
|
||||
self.setupUi(self)
|
||||
self.connect(self.resetButton, QtCore.SIGNAL("clicked()"), self.reset)
|
||||
self.connect(self.closeButton, QtCore.SIGNAL("clicked()"), self.close)
|
||||
|
||||
def reset (self):
|
||||
"""Reset options to default values."""
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Form implementation generated from reading ui file 'ui/options.ui'
|
||||
#
|
||||
# Created: Wed Jan 7 17:08:52 2009
|
||||
# Created: Sun Jan 11 11:30:58 2009
|
||||
# by: PyQt4 UI code generator 4.4.2
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
|
@ -14,7 +14,7 @@ class Ui_Options(object):
|
|||
Options.setObjectName("Options")
|
||||
Options.resize(306,255)
|
||||
self.resetButton = QtGui.QPushButton(Options)
|
||||
self.resetButton.setGeometry(QtCore.QRect(9,219,91,27))
|
||||
self.resetButton.setGeometry(QtCore.QRect(200,220,91,27))
|
||||
self.resetButton.setObjectName("resetButton")
|
||||
self.frame = QtGui.QFrame(Options)
|
||||
self.frame.setGeometry(QtCore.QRect(9,9,288,201))
|
||||
|
|
@ -55,6 +55,9 @@ class Ui_Options(object):
|
|||
self.verbose.setEnabled(True)
|
||||
self.verbose.setGeometry(QtCore.QRect(130,60,31,22))
|
||||
self.verbose.setObjectName("verbose")
|
||||
self.closeButton = QtGui.QPushButton(Options)
|
||||
self.closeButton.setGeometry(QtCore.QRect(10,220,75,27))
|
||||
self.closeButton.setObjectName("closeButton")
|
||||
|
||||
self.retranslateUi(Options)
|
||||
QtCore.QMetaObject.connectSlotsByName(Options)
|
||||
|
|
@ -76,4 +79,5 @@ class Ui_Options(object):
|
|||
self.label_5.setText(QtGui.QApplication.translate("Options", "Number of threads", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.threads.setToolTip(QtGui.QApplication.translate("Options", "Generate no more than the given number of threads.", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.verbose.setToolTip(QtGui.QApplication.translate("Options", "Log all checked URLs once. Default is to log only errors and warnings.", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.closeButton.setText(QtGui.QApplication.translate("Options", "Close", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
<widget class="QPushButton" name="resetButton" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>9</x>
|
||||
<y>219</y>
|
||||
<x>200</x>
|
||||
<y>220</y>
|
||||
<width>91</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
|
|
@ -196,6 +196,19 @@
|
|||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="closeButton" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>220</y>
|
||||
<width>75</width>
|
||||
<height>27</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text" >
|
||||
<string>Close</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue