Fix compilation error introduced in last commit

Display pieces size in torrent properties
This commit is contained in:
Christophe Dumez 2010-12-21 17:52:49 +00:00
commit f5b3564392
4 changed files with 57 additions and 10 deletions

View file

@ -177,6 +177,7 @@ void PropertiesWidget::clear() {
qDebug("Clearing torrent properties");
save_path->clear();
lbl_creationDate->clear();
pieceSize_lbl->clear();
hash_lbl->clear();
comment_text->clear();
progress_lbl->clear();
@ -247,6 +248,8 @@ void PropertiesWidget::loadTorrentInfos(const QTorrentHandle &_h) {
if(h.has_metadata()) {
// Creation date
lbl_creationDate->setText(h.creation_date());
// Pieces size
pieceSize_lbl->setText(misc::friendlyUnit(h.piece_length()));
// Comment
comment_text->setHtml(h.comment());
// URL seeds