diff --git a/gui/about.ui b/gui/about.ui index bf697ce..0346f07 100644 --- a/gui/about.ui +++ b/gui/about.ui @@ -238,6 +238,41 @@ + + + + + Noto Sans UI + 11 + + + + Website + + + + + + + + Noto Sans UI + 11 + + + + <website> + + + Qt::AutoText + + + true + + + Qt::TextBrowserInteraction + + + diff --git a/mp3monitoring/gui/windows/about.py b/mp3monitoring/gui/windows/about.py index 14d6f46..1815380 100644 --- a/mp3monitoring/gui/windows/about.py +++ b/mp3monitoring/gui/windows/about.py @@ -25,6 +25,7 @@ def __init__(self, parent): self.authorValue.setText( "{name}".format(link=static_data.AUTHOR_GITHUB, name=static_data.AUTHOR)) self.licenseValue.setText("GPLv3") + self.websiteValue.setText("GitLab".format(url=static_data.PROJECT_URL)) # set logo self.logo.setStyleSheet('background: transparent') diff --git a/mp3monitoring/gui/windows/ui/about.py b/mp3monitoring/gui/windows/ui/about.py index 92ebeac..73d3718 100644 --- a/mp3monitoring/gui/windows/ui/about.py +++ b/mp3monitoring/gui/windows/ui/about.py @@ -113,6 +113,23 @@ def setupUi(self, AboutWindow): self.licenseValue.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction) self.licenseValue.setObjectName("licenseValue") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.licenseValue) + self.websiteLabel = QtWidgets.QLabel(self.formLayoutWidget) + font = QtGui.QFont() + font.setFamily("Noto Sans UI") + font.setPointSize(11) + self.websiteLabel.setFont(font) + self.websiteLabel.setObjectName("websiteLabel") + self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.websiteLabel) + self.websiteValue = QtWidgets.QLabel(self.formLayoutWidget) + font = QtGui.QFont() + font.setFamily("Noto Sans UI") + font.setPointSize(11) + self.websiteValue.setFont(font) + self.websiteValue.setTextFormat(QtCore.Qt.AutoText) + self.websiteValue.setOpenExternalLinks(True) + self.websiteValue.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction) + self.websiteValue.setObjectName("websiteValue") + self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.websiteValue) self.programName = QtWidgets.QLabel(self.centralWidget) self.programName.setGeometry(QtCore.QRect(0, 0, 600, 40)) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) @@ -149,6 +166,8 @@ def retranslateUi(self, AboutWindow): self.copyrightValue.setText(_translate("AboutWindow", "2017 - now")) self.licenseLabel.setText(_translate("AboutWindow", "License")) self.licenseValue.setText(_translate("AboutWindow", "")) + self.websiteLabel.setText(_translate("AboutWindow", "Website")) + self.websiteValue.setText(_translate("AboutWindow", "")) self.programName.setText(_translate("AboutWindow", "")) self.version.setText(_translate("AboutWindow", ""))