Browse Source

Displaying save path in torrent properties window

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
d1546d18e6
  1. 1
      Changelog
  2. 41
      src/properties.ui
  3. 1
      src/properties_imp.cpp

1
Changelog

@ -4,6 +4,7 @@
- FEATURE: Added a torrent addition dialog - FEATURE: Added a torrent addition dialog
- I18N: Added Finnish translation - I18N: Added Finnish translation
- COSMETIC: Replaced OSD messages by systray messages - COSMETIC: Replaced OSD messages by systray messages
- COSMETIC: Displaying save path in torrent properties window
* Mon Oct 16 2006 - Christophe Dumez <chris@qbittorrent.org> - v0.7.1 * Mon Oct 16 2006 - Christophe Dumez <chris@qbittorrent.org> - v0.7.1
- I18N: Updated French, Polish, Dutch, Swedish, Slovak translations - I18N: Updated French, Polish, Dutch, Swedish, Slovak translations

41
src/properties.ui

@ -72,7 +72,7 @@
<item> <item>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" > <property name="margin" >
<number>9</number> <number>0</number>
</property> </property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
@ -208,6 +208,43 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="savePath_lbl" >
<property name="text" >
<string>Save path:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="save_path" >
<property name="text" >
<string/>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout> </layout>
</item> </item>
<item> <item>
@ -223,7 +260,7 @@
<property name="minimumSize" > <property name="minimumSize" >
<size> <size>
<width>0</width> <width>0</width>
<height>193</height> <height>170</height>
</size> </size>
</property> </property>
<property name="font" > <property name="font" >

1
src/properties_imp.cpp

@ -42,6 +42,7 @@ properties::properties(QWidget *parent, torrent_handle h, QStringList trackerErr
filesList->setItemDelegate(PropDelegate); filesList->setItemDelegate(PropDelegate);
connect(filesList, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(toggleSelectedState(const QModelIndex&))); connect(filesList, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(toggleSelectedState(const QModelIndex&)));
// get Infos from torrent handle // get Infos from torrent handle
save_path->setText(QString(h.save_path().string().c_str()));
torrent_status torrentStatus = h.status(); torrent_status torrentStatus = h.status();
torrent_info torrentInfo = h.get_torrent_info(); torrent_info torrentInfo = h.get_torrent_info();
fileName->setText(torrentInfo.name().c_str()); fileName->setText(torrentInfo.name().c_str());

Loading…
Cancel
Save