Commit 7ac9a9a0 authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: plugins info: simplify concats

parent cd02ebb2
......@@ -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 );
......
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