Browse Source

Remove unused functions

adaptive-webui-19844
Chocobo1 2 years ago
parent
commit
6c8b31420c
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 18
      src/gui/torrentcontentmodel.cpp
  2. 4
      src/gui/torrentcontentmodel.h

18
src/gui/torrentcontentmodel.cpp

@ -550,21 +550,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)));
}

4
src/gui/torrentcontentmodel.h

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

Loading…
Cancel
Save