From 13e1a522ed97f291f1dde663b6ff29d1077d30df Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 1 Jan 2011 10:39:44 +0100 Subject: [PATCH] Remove reset button from options dialog. --- doc/changelog.txt | 1 + linkcheck/gui/linkchecker_ui_options.py | 7 +------ linkcheck/gui/options.py | 1 - linkcheck/gui/ui/options.ui | 10 ---------- 4 files changed, 2 insertions(+), 17 deletions(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 04fdc898..f78bac03 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -2,6 +2,7 @@ Changes: - checking: Parse PHP files recursively. +- gui: Remove reset button from option dialog. 6.1 "Christmas Vacation" (released 23.12.2010) diff --git a/linkcheck/gui/linkchecker_ui_options.py b/linkcheck/gui/linkchecker_ui_options.py index 02874866..30aad47c 100644 --- a/linkcheck/gui/linkchecker_ui_options.py +++ b/linkcheck/gui/linkchecker_ui_options.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'ui/options.ui' # -# Created: Thu Dec 23 19:47:37 2010 +# Created: Sat Jan 1 10:37:22 2011 # by: PyQt4 UI code generator 4.7.3 # # WARNING! All changes made in this file will be lost! @@ -87,9 +87,6 @@ class Ui_Options(object): self.closeButton = QtGui.QPushButton(self.widget) self.closeButton.setObjectName("closeButton") self.horizontalLayout.addWidget(self.closeButton) - self.resetButton = QtGui.QPushButton(self.widget) - self.resetButton.setObjectName("resetButton") - self.horizontalLayout.addWidget(self.resetButton) self.verticalLayout_3.addWidget(self.widget) self.tabWidget.addTab(self.gui_options, "") self.config_options = QtGui.QWidget() @@ -154,8 +151,6 @@ class Ui_Options(object): self.verbose.setToolTip(_("Log all checked URLs once. Default is to log only errors and warnings.")) self.label_4.setText(_("Debug")) self.closeButton.setText(_("Close")) - self.resetButton.setToolTip(_("Reset all options to default values.")) - self.resetButton.setText(_("Reset")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.gui_options), _("GUI options")) self.label_9.setText(_("The configuration files can be edited with an integrated text editor.")) self.label_6.setText(_("System configuration file")) diff --git a/linkcheck/gui/options.py b/linkcheck/gui/options.py index 399f4461..181f0d9b 100644 --- a/linkcheck/gui/options.py +++ b/linkcheck/gui/options.py @@ -30,7 +30,6 @@ class LinkCheckerOptions (QtGui.QDialog, Ui_Options): self.setupUi(self) self.editor = EditorWindow(self) self.closeButton.clicked.connect(self.close) - self.resetButton.clicked.connect(self.reset) self.sys_config_button.clicked.connect(self.edit_sys_config) self.user_config_button.clicked.connect(self.edit_user_config) self.reset() diff --git a/linkcheck/gui/ui/options.ui b/linkcheck/gui/ui/options.ui index ecf41c1f..cafacf4e 100644 --- a/linkcheck/gui/ui/options.ui +++ b/linkcheck/gui/ui/options.ui @@ -187,16 +187,6 @@ - - - - Reset all options to default values. - - - Reset - - -