vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Mon Feb 20 
19:39:12 2012 +0100| [7ac9a9a01a78dcf0a6bf09ffc33d0539717ac54f] | committer: 
Francois Cartegnie

Qt: plugins info: simplify concats

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ac9a9a01a78dcf0a6bf09ffc33d0539717ac54f
---

 modules/gui/qt4/dialogs/plugins.cpp |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt4/dialogs/plugins.cpp 
b/modules/gui/qt4/dialogs/plugins.cpp
index 8d18b89..01ce287 100644
--- a/modules/gui/qt4/dialogs/plugins.cpp
+++ b/modules/gui/qt4/dialogs/plugins.cpp
@@ -549,13 +549,9 @@ ExtensionInfoDialog::ExtensionInfoDialog( const 
ExtensionCopy& extension,
     // URL
     label = new QLabel( "<b>" + qtr( "Website" ) + ":</b>", this );
     layout->addWidget( label, 5, 0, 1, 2 );
-    QString txt = "<a href=\"";
-    txt += extension.url;
-    txt += "\">";
-    txt += extension.url;
-    txt += "</a>";
-    label = new QLabel( txt, this );
-    label->setText( txt );
+    label = new QLabel( QString("<a href=\"%1\">%2</a>")
+                        .arg( extension.url ).arg( extension.url )
+                        , this );
     label->setOpenExternalLinks( true );
     layout->addWidget( label, 5, 2, 1, -1 );
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to