From d1546d18e6acf14e7131a01d84a4283a41de2eac Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 23 Oct 2006 22:36:00 +0000 Subject: [PATCH] Displaying save path in torrent properties window --- Changelog | 1 + src/properties.ui | 41 +++++++++++++++++++++++++++++++++++++++-- src/properties_imp.cpp | 1 + 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 0477c57c8..0142e3758 100644 --- a/Changelog +++ b/Changelog @@ -4,6 +4,7 @@ - FEATURE: Added a torrent addition dialog - I18N: Added Finnish translation - COSMETIC: Replaced OSD messages by systray messages + - COSMETIC: Displaying save path in torrent properties window * Mon Oct 16 2006 - Christophe Dumez - v0.7.1 - I18N: Updated French, Polish, Dutch, Swedish, Slovak translations diff --git a/src/properties.ui b/src/properties.ui index f086e363f..955a9639e 100644 --- a/src/properties.ui +++ b/src/properties.ui @@ -72,7 +72,7 @@ - 9 + 0 6 @@ -208,6 +208,43 @@ + + + + 0 + + + 6 + + + + + Save path: + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + @@ -223,7 +260,7 @@ 0 - 193 + 170 diff --git a/src/properties_imp.cpp b/src/properties_imp.cpp index 1c26bfbcc..75985c006 100644 --- a/src/properties_imp.cpp +++ b/src/properties_imp.cpp @@ -42,6 +42,7 @@ properties::properties(QWidget *parent, torrent_handle h, QStringList trackerErr filesList->setItemDelegate(PropDelegate); connect(filesList, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(toggleSelectedState(const QModelIndex&))); // get Infos from torrent handle + save_path->setText(QString(h.save_path().string().c_str())); torrent_status torrentStatus = h.status(); torrent_info torrentInfo = h.get_torrent_info(); fileName->setText(torrentInfo.name().c_str());