Added link to github into labelVersion in AboutDialog
This commit is contained in:
parent
62a930c374
commit
f3808212b5
|
@ -39,7 +39,7 @@
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">PyBitmessage</string>
|
<string notr="true"><html><head/><body><p><a href="https://github.com/Bitmessage/PyBitmessage/tree/:branch:"><span style="text-decoration:none; color:#0000ff;">PyBitmessage :version:</span></a></p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="alignment">
|
<property name="alignment">
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||||
|
|
|
@ -114,11 +114,15 @@ class AboutDialog(QtGui.QDialog, RetranslateMixin):
|
||||||
super(AboutDialog, self).__init__(parent)
|
super(AboutDialog, self).__init__(parent)
|
||||||
widgets.load('about.ui', self)
|
widgets.load('about.ui', self)
|
||||||
commit = paths.lastCommit()[:7]
|
commit = paths.lastCommit()[:7]
|
||||||
label = "PyBitmessage " + softwareVersion
|
version = softwareVersion
|
||||||
if commit:
|
if commit:
|
||||||
label += '-' + commit
|
version += '-' + commit
|
||||||
self.labelVersion.setText(label)
|
self.labelVersion.setText(
|
||||||
QtGui.QWidget.resize(self, QtGui.QWidget.sizeHint(self))
|
self.labelVersion.text().replace(
|
||||||
|
':version:', version
|
||||||
|
).replace(':branch:', commit or 'v%s' % version)
|
||||||
|
)
|
||||||
|
self.labelVersion.setOpenExternalLinks(True)
|
||||||
|
|
||||||
|
|
||||||
class IconGlossaryDialog(QtGui.QDialog, RetranslateMixin):
|
class IconGlossaryDialog(QtGui.QDialog, RetranslateMixin):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user