add a link to documentation on the file naming page

This commit is contained in:
Alex Berman
2015-12-11 00:26:36 -05:00
parent 5890785135
commit ddffeda112

View File

@@ -106,6 +106,13 @@ class Ui_RenamingOptionsPage(object):
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"))
@@ -167,6 +174,7 @@ class Ui_RenamingOptionsPage(object):
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Monospace\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;\"><br /></p></body></html>", None))
self.file_naming_format_documentation.setText(_('''<a href='https://picard.musicbrainz.org/docs/scripting'>View full documentaton online'''))
self.file_naming_format_default.setText(_("Default"))
self.groupBox.setTitle(_("Examples"))