Load magnet metadata inside AddNewTorrentDialog

This commit is contained in:
Nick Tiskov
2013-07-27 23:04:16 +04:00
parent af40488e5c
commit 8ca7603f38
2 changed files with 149 additions and 7 deletions

View File

@@ -35,6 +35,7 @@
#include <QDialog>
#include <QUrl>
#include <libtorrent/torrent_info.hpp>
#include "qtorrenthandle.h"
QT_BEGIN_NAMESPACE
namespace Ui {
@@ -58,12 +59,16 @@ public:
private slots:
void showAdvancedSettings(bool show);
void displayContentTreeMenu(const QPoint&);
void on_buttonBox_accepted();
void updateDiskSpaceLabel();
void onSavePathChanged(int);
void relayout();
void renameSelectedFile();
void setdialogPosition();
void updateMetadata(const QTorrentHandle& h);
protected slots:
virtual void accept();
virtual void reject();
private:
explicit AddNewTorrentDialog(QWidget *parent = 0);
@@ -81,6 +86,8 @@ private:
TorrentContentFilterModel *m_contentModel;
PropListDelegate *m_contentDelegate;
bool m_isMagnet;
bool m_hasMetadata;
bool m_convertingMagnet;
QString m_filePath;
QString m_url;
QString m_hash;