mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
Convert the names used in ui and c++ files from snake_case to camelCase
This commit is contained in:
parent
7e4db8fafd
commit
976e2450ec
22 changed files with 315 additions and 314 deletions
|
@ -55,13 +55,13 @@ QList<BitTorrent::PeerAddress> PeersAdditionDialog::askForPeers(QWidget *parent)
|
|||
|
||||
void PeersAdditionDialog::validateInput()
|
||||
{
|
||||
if (m_ui->peers_txt->toPlainText().trimmed().isEmpty()) {
|
||||
if (m_ui->textEditPeers->toPlainText().trimmed().isEmpty()) {
|
||||
QMessageBox::warning(this, tr("No peer entered"),
|
||||
tr("Please type at least one peer."),
|
||||
QMessageBox::Ok);
|
||||
return;
|
||||
}
|
||||
foreach (const QString &peer, m_ui->peers_txt->toPlainText().trimmed().split('\n')) {
|
||||
foreach (const QString &peer, m_ui->textEditPeers->toPlainText().trimmed().split('\n')) {
|
||||
BitTorrent::PeerAddress addr = parsePeer(peer);
|
||||
if (!addr.ip.isNull()) {
|
||||
m_peersList.append(addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue