mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 01:57:07 -07:00
Coding style clean up
This commit is contained in:
parent
9acac03f14
commit
a8a7b61ea9
77 changed files with 2194 additions and 2194 deletions
|
@ -73,7 +73,7 @@ void LogListWidget::appendLine(const QString &line)
|
|||
setItemWidget(item, lbl);
|
||||
const int nbLines = count();
|
||||
// Limit log size
|
||||
if(nbLines > m_maxLines)
|
||||
if (nbLines > m_maxLines)
|
||||
delete takeItem(nbLines - 1);
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ void LogListWidget::copySelection()
|
|||
static QRegExp html_tag("<[^>]+>");
|
||||
QList<QListWidgetItem*> items = selectedItems();
|
||||
QStringList strings;
|
||||
foreach(QListWidgetItem* it, items)
|
||||
foreach (QListWidgetItem* it, items)
|
||||
strings << static_cast<QLabel*>(itemWidget(it))->text().replace(html_tag, "");
|
||||
|
||||
QApplication::clipboard()->setText(strings.join("\n"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue