Show info hash in the torrent details in 'Add New Torrent' dialog.

Initial work by chrishirst.
Closes #2385.
This commit is contained in:
sledgehammer999 2015-02-01 18:11:43 +02:00
parent cb9a5c5018
commit 6209d8838a
2 changed files with 17 additions and 1 deletions

View File

@ -212,6 +212,7 @@ bool AddNewTorrentDialog::loadTorrent(const QString& torrent_path, const QString
return false;
}
ui->lblhash->setText(m_hash);
setupTreeview();
return true;
}
@ -247,6 +248,7 @@ bool AddNewTorrentDialog::loadMagnet(const QString &magnet_uri)
HiddenData::addData(m_hash);
QBtSession::instance()->addMagnetUri(m_url, false);
setMetadataProgressIndicator(true, tr("Retrieving metadata..."));
ui->lblhash->setText(m_hash);
return true;
}

View File

@ -137,7 +137,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0" columnstretch="0,1">
<layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0,0" columnstretch="0,1">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
@ -180,6 +180,20 @@
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Info Hash:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="lblhash">
<property name="textInteractionFlags">
<set>Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
</layout>
</item>
<item>