mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
Merge pull request #15181 from glassez/qt5
Raise minimum Qt version to 5.15.2
This commit is contained in:
@@ -75,10 +75,10 @@ DownloadFromURLDialog::DownloadFromURLDialog(QWidget *parent)
|
||||
|
||||
// Paste clipboard if there is an URL in it
|
||||
const QString clipboardText = qApp->clipboard()->text();
|
||||
const QVector<QStringRef> clipboardList = clipboardText.splitRef('\n');
|
||||
const QList<QStringView> clipboardList = QStringView(clipboardText).split(u'\n');
|
||||
|
||||
QSet<QString> uniqueURLs;
|
||||
for (QStringRef strRef : clipboardList)
|
||||
for (QStringView strRef : clipboardList)
|
||||
{
|
||||
strRef = strRef.trimmed();
|
||||
if (strRef.isEmpty()) continue;
|
||||
@@ -107,10 +107,10 @@ DownloadFromURLDialog::~DownloadFromURLDialog()
|
||||
void DownloadFromURLDialog::downloadButtonClicked()
|
||||
{
|
||||
const QString plainText = m_ui->textUrls->toPlainText();
|
||||
const QVector<QStringRef> urls = plainText.splitRef('\n');
|
||||
const QList<QStringView> urls = QStringView(plainText).split(u'\n');
|
||||
|
||||
QSet<QString> uniqueURLs;
|
||||
for (QStringRef url : urls)
|
||||
for (QStringView url : urls)
|
||||
{
|
||||
url = url.trimmed();
|
||||
if (url.isEmpty()) continue;
|
||||
|
||||
Reference in New Issue
Block a user