diff --git a/aqt/about.py b/aqt/about.py index b63ee4fc1..89e780b8e 100644 --- a/aqt/about.py +++ b/aqt/about.py @@ -5,15 +5,23 @@ from aqt.qt import * import aqt.forms from aqt import appVersion +from aqt.utils import openLink def show(parent): dialog = QDialog(parent) abt = aqt.forms.about.Ui_About() abt.setupUi(dialog) - abouttext = "
" + abt.label.page().setLinkDelegationPolicy(QWebPage.DelegateAllLinks) + def onLink(url): + openLink(url.toString()) + parent.connect(abt.label, + SIGNAL("linkClicked(QUrl)"), + onLink) + abouttext = "
" abouttext += '

' + _("Anki is a friendly, intelligent spaced learning \ system. It's free and open source.") abouttext += '

' + _("Version %s") % appVersion + '
' + abouttext += ("Qt %s PyQt %s
") % (QT_VERSION_STR, PYQT_VERSION_STR) abouttext += (_("Visit website") % aqt.appWebsite) + \ "" abouttext += '

' + _("Written by Damien Elmes, with patches, translation,\ @@ -38,7 +46,7 @@ for credits.""") please get in touch.") abouttext += '

' + _("A big thanks to all the people who have provided \ suggestions, bug reports and donations.") - abt.label.setText(abouttext) + abt.label.setHtml(abouttext) dialog.adjustSize() dialog.show() dialog.exec_() diff --git a/designer/about.ui b/designer/about.ui index 4d8d289fe..bcee19b2f 100644 --- a/designer/about.ui +++ b/designer/about.ui @@ -1,54 +1,58 @@ - + + About - - + + 0 0 410 - 447 + 664 - - + + 0 0 - + About Anki - + + + 0 + - - - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop - - - true - - - true + + + + about:blank + - - + + Qt::Horizontal - + QDialogButtonBox::Ok + + + QWebView + QWidget +

QtWebKit/QWebView
+ + - + @@ -57,11 +61,11 @@ About accept() - + 248 254 - + 157 274 @@ -73,11 +77,11 @@ About reject() - + 316 260 - + 286 274