1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Set QTextOption::NoWrap property in "Download from URLs" dialog

This makes it easier to put each magnet link on its own line
This commit is contained in:
Chocobo1 2017-09-29 04:53:01 +08:00
parent c5607f07c8
commit b3207b8144
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -56,6 +56,8 @@ class downloadFromURL : public QDialog, private Ui::downloadFromURL
connect(buttonBox, &QDialogButtonBox::accepted, this, &downloadFromURL::downloadButtonClicked); connect(buttonBox, &QDialogButtonBox::accepted, this, &downloadFromURL::downloadButtonClicked);
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
textUrls->setWordWrapMode(QTextOption::NoWrap);
// Paste clipboard if there is an URL in it // Paste clipboard if there is an URL in it
QString clip_txt = qApp->clipboard()->text(); QString clip_txt = qApp->clipboard()->text();
QStringList clip_txt_list = clip_txt.split(QString::fromUtf8("\n")); QStringList clip_txt_list = clip_txt.split(QString::fromUtf8("\n"));