mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-22 22:33:34 -07:00
Remove unused functions
This commit is contained in:
parent
3f15f4a44e
commit
2831ad5d22
2 changed files with 0 additions and 22 deletions
|
@ -536,21 +536,3 @@ void TorrentContentModel::setupModelData(const BitTorrent::AbstractFileStorage &
|
||||||
}
|
}
|
||||||
emit layoutChanged();
|
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)));
|
|
||||||
}
|
|
||||||
|
|
|
@ -79,10 +79,6 @@ public:
|
||||||
signals:
|
signals:
|
||||||
void filteredFilesChanged();
|
void filteredFilesChanged();
|
||||||
|
|
||||||
public slots:
|
|
||||||
void selectAll();
|
|
||||||
void selectNone();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TorrentContentModelFolder *m_rootItem;
|
TorrentContentModelFolder *m_rootItem;
|
||||||
QVector<TorrentContentModelFile *> m_filesIndex;
|
QVector<TorrentContentModelFile *> m_filesIndex;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue