mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 18:17:08 -07:00
TorrentContentModel code clean up
This commit is contained in:
parent
45ba858022
commit
38daa23be2
7 changed files with 20 additions and 16 deletions
|
@ -80,3 +80,10 @@ void TorrentContentModelFile::setPriority(int new_prio, bool update_parent)
|
|||
m_parentItem->updatePriority();
|
||||
}
|
||||
}
|
||||
|
||||
void TorrentContentModelFile::setProgress(qulonglong done)
|
||||
{
|
||||
m_totalDone = done;
|
||||
Q_ASSERT(m_totalDone <= m_size);
|
||||
m_parentItem->updateProgress();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue