mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07: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:
parent
c5607f07c8
commit
b3207b8144
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,8 @@ class downloadFromURL : public QDialog, private Ui::downloadFromURL
|
|||
connect(buttonBox, &QDialogButtonBox::accepted, this, &downloadFromURL::downloadButtonClicked);
|
||||
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
|
||||
textUrls->setWordWrapMode(QTextOption::NoWrap);
|
||||
|
||||
// Paste clipboard if there is an URL in it
|
||||
QString clip_txt = qApp->clipboard()->text();
|
||||
QStringList clip_txt_list = clip_txt.split(QString::fromUtf8("\n"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue