Commit 7ac9a9a0 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: plugins info: simplify concats

parent cd02ebb2
...@@ -549,13 +549,9 @@ ExtensionInfoDialog::ExtensionInfoDialog( const ExtensionCopy& extension, ...@@ -549,13 +549,9 @@ ExtensionInfoDialog::ExtensionInfoDialog( const ExtensionCopy& extension,
// URL // URL
label = new QLabel( "<b>" + qtr( "Website" ) + ":</b>", this ); label = new QLabel( "<b>" + qtr( "Website" ) + ":</b>", this );
layout->addWidget( label, 5, 0, 1, 2 ); layout->addWidget( label, 5, 0, 1, 2 );
QString txt = "<a href=\""; label = new QLabel( QString("<a href=\"%1\">%2</a>")
txt += extension.url; .arg( extension.url ).arg( extension.url )
txt += "\">"; , this );
txt += extension.url;
txt += "</a>";
label = new QLabel( txt, this );
label->setText( txt );
label->setOpenExternalLinks( true ); label->setOpenExternalLinks( true );
layout->addWidget( label, 5, 2, 1, -1 ); layout->addWidget( label, 5, 2, 1, -1 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment