mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Merge pull request #14647 from Chocobo1/cursor
Move cursor to the next line of end of text
This commit is contained in:
commit
48d532777a
@ -83,7 +83,12 @@ DownloadFromURLDialog::DownloadFromURLDialog(QWidget *parent)
|
|||||||
if (isDownloadable(str))
|
if (isDownloadable(str))
|
||||||
uniqueURLs << str;
|
uniqueURLs << str;
|
||||||
}
|
}
|
||||||
m_ui->textUrls->setText(uniqueURLs.values().join('\n'));
|
|
||||||
|
const QString text = uniqueURLs.values().join(QLatin1Char('\n'))
|
||||||
|
+ (!uniqueURLs.isEmpty() ? QLatin1String("\n") : QLatin1String(""));
|
||||||
|
|
||||||
|
m_ui->textUrls->setText(text);
|
||||||
|
m_ui->textUrls->moveCursor(QTextCursor::End);
|
||||||
|
|
||||||
Utils::Gui::resize(this, m_storeDialogSize);
|
Utils::Gui::resize(this, m_storeDialogSize);
|
||||||
show();
|
show();
|
||||||
|
Loading…
Reference in New Issue
Block a user