Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
[gui] Add website url
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Nov 23, 2017
1 parent 30a082c commit b2ab47e
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
35 changes: 35 additions & 0 deletions gui/about.ui
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,41 @@
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="websiteLabel">
<property name="font">
<font>
<family>Noto Sans UI</family>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>Website</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="websiteValue">
<property name="font">
<font>
<family>Noto Sans UI</family>
<pointsize>11</pointsize>
</font>
</property>
<property name="text">
<string>&lt;website&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextBrowserInteraction</set>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QLabel" name="programName">
Expand Down
1 change: 1 addition & 0 deletions mp3monitoring/gui/windows/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def __init__(self, parent):
self.authorValue.setText(
"<a href=\"{link}\">{name}</a>".format(link=static_data.AUTHOR_GITHUB, name=static_data.AUTHOR))
self.licenseValue.setText("<a href=\"https://www.gnu.org/licenses/gpl-3.0-standalone.html\">GPLv3</a>")
self.websiteValue.setText("<a href=\"{url}\">GitLab</a>".format(url=static_data.PROJECT_URL))

# set logo
self.logo.setStyleSheet('background: transparent')
Expand Down
19 changes: 19 additions & 0 deletions mp3monitoring/gui/windows/ui/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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", "<license>"))
self.websiteLabel.setText(_translate("AboutWindow", "Website"))
self.websiteValue.setText(_translate("AboutWindow", "<website>"))
self.programName.setText(_translate("AboutWindow", "<name>"))
self.version.setText(_translate("AboutWindow", "<version>"))

0 comments on commit b2ab47e

Please sign in to comment.