1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 13:04:23 +00:00

Remove unused functions

This commit is contained in:
Chocobo1 2022-09-27 01:08:44 +08:00
parent 0514cb304d
commit 6c8b31420c
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 0 additions and 22 deletions

View File

@ -550,21 +550,3 @@ void TorrentContentModel::setupModelData(const BitTorrent::AbstractFileStorage &
}
emit layoutChanged();
}
void TorrentContentModel::selectAll()
{
for (int i = 0; i < m_rootItem->childCount(); ++i)
{
TorrentContentModelItem *child = m_rootItem->child(i);
if (child->priority() == BitTorrent::DownloadPriority::Ignored)
child->setPriority(BitTorrent::DownloadPriority::Normal);
}
emit dataChanged(index(0, 0), index((rowCount() - 1), (columnCount() - 1)));
}
void TorrentContentModel::selectNone()
{
for (int i = 0; i < m_rootItem->childCount(); ++i)
m_rootItem->child(i)->setPriority(BitTorrent::DownloadPriority::Ignored);
emit dataChanged(index(0, 0), index((rowCount() - 1), (columnCount() - 1)));
}

View File

@ -79,10 +79,6 @@ public:
signals:
void filteredFilesChanged();
public slots:
void selectAll();
void selectNone();
private:
TorrentContentModelFolder *m_rootItem = nullptr;
QVector<TorrentContentModelFile *> m_filesIndex;