mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Construct QString more efficiently
This commit is contained in:
parent
2c23840947
commit
7de8a4d6e0
25 changed files with 60 additions and 61 deletions
|
@ -333,7 +333,7 @@ void AdvancedSettings::loadAdvancedSettings()
|
|||
, tr("Open documentation"))
|
||||
, this);
|
||||
labelQbtLink->setOpenExternalLinks(true);
|
||||
addRow(QBITTORRENT_HEADER, QString("<b>%1</b>").arg(tr("qBittorrent Section")), labelQbtLink);
|
||||
addRow(QBITTORRENT_HEADER, QString::fromLatin1("<b>%1</b>").arg(tr("qBittorrent Section")), labelQbtLink);
|
||||
static_cast<QLabel *>(cellWidget(QBITTORRENT_HEADER, PROPERTY))->setAlignment(Qt::AlignCenter | Qt::AlignVCenter);
|
||||
|
||||
auto *labelLibtorrentLink = new QLabel(
|
||||
|
@ -341,7 +341,7 @@ void AdvancedSettings::loadAdvancedSettings()
|
|||
, tr("Open documentation"))
|
||||
, this);
|
||||
labelLibtorrentLink->setOpenExternalLinks(true);
|
||||
addRow(LIBTORRENT_HEADER, QString("<b>%1</b>").arg(tr("libtorrent Section")), labelLibtorrentLink);
|
||||
addRow(LIBTORRENT_HEADER, QString::fromLatin1("<b>%1</b>").arg(tr("libtorrent Section")), labelLibtorrentLink);
|
||||
static_cast<QLabel *>(cellWidget(LIBTORRENT_HEADER, PROPERTY))->setAlignment(Qt::AlignCenter | Qt::AlignVCenter);
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue