From d4d5b578e3a9d33986f26b95abf502c9dfa9d2be Mon Sep 17 00:00:00 2001 From: Alex Berman Date: Fri, 11 Dec 2015 01:39:26 -0500 Subject: [PATCH] Add link to documentation on the file naming page --- picard/ui/ui_options_renaming.py | 17 +++++++++-------- ui/options_renaming.ui | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/picard/ui/ui_options_renaming.py b/picard/ui/ui_options_renaming.py index 0f4075b00a..7b9b3f3c7d 100644 --- a/picard/ui/ui_options_renaming.py +++ b/picard/ui/ui_options_renaming.py @@ -106,13 +106,6 @@ def setupUi(self, RenamingOptionsPage): self.file_naming_format.setTextInteractionFlags(QtCore.Qt.TextEditorInteraction) self.file_naming_format.setObjectName(_fromUtf8("file_naming_format")) self.verticalLayout_2.addWidget(self.file_naming_format) - self.file_naming_format_documentation = QtGui.QLabel(self.file_naming_format_group) - self.file_naming_format_documentation.setText(_fromUtf8("")) - self.file_naming_format_documentation.setOpenExternalLinks(True); - self.file_naming_format_documentation.setTextFormat(QtCore.Qt.RichText) - self.file_naming_format_documentation.setWordWrap(True) - self.file_naming_format_documentation.setObjectName(_fromUtf8("file_naming_format_documentation")) - self.verticalLayout_2.addWidget(self.file_naming_format_documentation) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setSpacing(2) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) @@ -132,6 +125,12 @@ def setupUi(self, RenamingOptionsPage): self.horizontalLayout.addWidget(self.file_naming_format_default) self.verticalLayout_2.addLayout(self.horizontalLayout) self.verticalLayout_3.addWidget(self.file_naming_format_group) + self.ile_naming_format_documentation = QtGui.QLabel(self.rename_files) + self.ile_naming_format_documentation.setOpenExternalLinks(True) + self.ile_naming_format_documentation.setTextFormat(QtCore.Qt.RichText) + self.ile_naming_format_documentation.setWordWrap(True) + self.ile_naming_format_documentation.setObjectName(_fromUtf8("ile_naming_format_documentation")) + self.verticalLayout_3.addWidget(self.ile_naming_format_documentation) self.verticalLayout_5.addWidget(self.rename_files) self.groupBox = QtGui.QGroupBox(RenamingOptionsPage) self.groupBox.setObjectName(_fromUtf8("groupBox")) @@ -174,7 +173,9 @@ def retranslateUi(self, RenamingOptionsPage): "p, li { white-space: pre-wrap; }\n" "\n" "


", None)) - self.file_naming_format_documentation.setText(_('''View full documentaton online''')) self.file_naming_format_default.setText(_("Default")) + self.ile_naming_format_documentation.setText(_translate("RenamingOptionsPage", "\n" +" View full documentation online\n" +" ", None)) self.groupBox.setTitle(_("Examples")) diff --git a/ui/options_renaming.ui b/ui/options_renaming.ui index 0bd1be8886..328ac4f462 100644 --- a/ui/options_renaming.ui +++ b/ui/options_renaming.ui @@ -222,6 +222,24 @@ p, li { white-space: pre-wrap; } + + + + View full documentation online + ]]> + + + true + + + Qt::RichText + + + true + + +