[vlc-commits] Qt: about: Use rich text (fix #7590).
Francois Cartegnie
git at videolan.org
Sat Dec 22 21:25:54 CET 2012
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Dec 22 21:25:32 2012 +0100| [e10b52d53ead90c83922fd595595266b60ea95c8] | committer: Francois Cartegnie
Qt: about: Use rich text (fix #7590).
Ubuntu bug #1038303
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e10b52d53ead90c83922fd595595266b60ea95c8
---
modules/gui/qt4/dialogs/help.cpp | 5 ++++-
modules/gui/qt4/ui/about.ui | 6 ++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt4/dialogs/help.cpp b/modules/gui/qt4/dialogs/help.cpp
index 602932e..2df8935 100644
--- a/modules/gui/qt4/dialogs/help.cpp
+++ b/modules/gui/qt4/dialogs/help.cpp
@@ -117,7 +117,10 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf)
+ qtr( "You are using the Qt Interface.\n\n" )
+ qtr( "Copyright (C) " ) + COPYRIGHT_YEARS
+ qtr( " by the VideoLAN Team.\n" )
- + "http://www.videolan.org" );
+ + "<a href=\"http://www.videolan.org\">http://www.videolan.org</a>" );
+
+ /* Be translators friendly: Convert to rich text */
+ ui.infoLabel->setText( ui.infoLabel->text().replace( "\n", "<br/>" ) );
/* GPL License */
ui.licenseEdit->setText( qfu( psz_license ) );
diff --git a/modules/gui/qt4/ui/about.ui b/modules/gui/qt4/ui/about.ui
index cbaf7ec..c280c47 100644
--- a/modules/gui/qt4/ui/about.ui
+++ b/modules/gui/qt4/ui/about.ui
@@ -63,9 +63,15 @@
<property name="text">
<string notr="true">infoLabel</string>
</property>
+ <property name="textFormat">
+ <enum>Qt::RichText</enum>
+ </property>
<property name="wordWrap">
<bool>true</bool>
</property>
+ <property name="openExternalLinks">
+ <bool>true</bool>
+ </property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse</set>
</property>
More information about the vlc-commits
mailing list