add a remaining column to the torrent content model

This commit is contained in:
Ben Lau
2016-01-09 10:10:57 -08:00
parent 6054e05e70
commit cd9cae4121
7 changed files with 30 additions and 3 deletions

View File

@@ -69,5 +69,6 @@ void TorrentContentModelFile::setPriority(int new_prio, bool update_parent)
void TorrentContentModelFile::setProgress(qreal progress)
{
m_progress = progress;
m_remaining = (qulonglong)(m_size * (1.0 - m_progress));
Q_ASSERT(m_progress <= 1.);
}