Browse Source

FEATURE: Added "No action" setting for double-click action

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
cc97ee86df
  1. 1
      Changelog
  2. 2
      src/options_imp.h
  3. 5
      src/transferlistwidget.cpp
  4. 50
      src/ui/options.ui

1
Changelog

@ -5,6 +5,7 @@
- FEATURE: The user can force listening on a particular network interface - FEATURE: The user can force listening on a particular network interface
- FEATURE: Added cookie support for RSS feeds - FEATURE: Added cookie support for RSS feeds
- FEATURE: User can force tracker reannounce - FEATURE: User can force tracker reannounce
- FEATURE: Added "No action" setting for double-click action
- COSMETIC: Display peers country name in tooltip - COSMETIC: Display peers country name in tooltip
* Sun Mar 14 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.0 * Sun Mar 14 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.0

2
src/options_imp.h

@ -37,7 +37,7 @@
enum ProxyType {HTTP=1, SOCKS5=2, HTTP_PW=3, SOCKS5_PW=4, SOCKS4=5}; enum ProxyType {HTTP=1, SOCKS5=2, HTTP_PW=3, SOCKS5_PW=4, SOCKS4=5};
// actions on double-click on torrents // actions on double-click on torrents
enum DoubleClickAction {TOGGLE_PAUSE, OPEN_DEST}; enum DoubleClickAction {TOGGLE_PAUSE, OPEN_DEST, NO_ACTION};
using namespace libtorrent; using namespace libtorrent;

5
src/transferlistwidget.cpp

@ -568,11 +568,10 @@ void TransferListWidget::torrentDoubleClicked(const QModelIndex& index) {
QTorrentHandle h = BTSession->getTorrentHandle(hash); QTorrentHandle h = BTSession->getTorrentHandle(hash);
if(!h.is_valid()) return; if(!h.is_valid()) return;
int action; int action;
QSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
if(h.is_seed()) { if(h.is_seed()) {
action = settings.value(QString::fromUtf8("Preferences/Downloads/DblClOnTorFN"), 0).toInt(); action = Preferences::getActionOnDblClOnTorrentFn();
} else { } else {
action = settings.value(QString::fromUtf8("Preferences/Downloads/DblClOnTorDl"), 0).toInt(); action = Preferences::getActionOnDblClOnTorrentDl();
} }
switch(action) { switch(action) {

50
src/ui/options.ui

@ -241,7 +241,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>515</width> <width>506</width>
<height>543</height> <height>543</height>
</rect> </rect>
</property> </property>
@ -436,6 +436,11 @@ QGroupBox {
<string>Open folder</string> <string>Open folder</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>No action</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item> <item>
@ -470,6 +475,11 @@ QGroupBox {
<string>Open folder</string> <string>Open folder</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>No action</string>
</property>
</item>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -555,8 +565,8 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>658</width> <width>632</width>
<height>684</height> <height>686</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_17"> <layout class="QVBoxLayout" name="verticalLayout_17">
@ -729,18 +739,6 @@ QGroupBox {
<attribute name="verticalHeaderVisible"> <attribute name="verticalHeaderVisible">
<bool>false</bool> <bool>false</bool>
</attribute> </attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="horizontalHeaderDefaultSectionSize">
<number>80</number>
</attribute>
</widget> </widget>
</item> </item>
<item> <item>
@ -1111,8 +1109,8 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>524</width> <width>447</width>
<height>398</height> <height>288</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_28"> <layout class="QVBoxLayout" name="verticalLayout_28">
@ -1356,8 +1354,8 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>524</width> <width>364</width>
<height>406</height> <height>328</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_33"> <layout class="QVBoxLayout" name="verticalLayout_33">
@ -1771,7 +1769,7 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>482</width> <width>459</width>
<height>407</height> <height>407</height>
</rect> </rect>
</property> </property>
@ -2188,7 +2186,7 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>496</width> <width>475</width>
<height>308</height> <height>308</height>
</rect> </rect>
</property> </property>
@ -2622,7 +2620,7 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>296</width> <width>287</width>
<height>124</height> <height>124</height>
</rect> </rect>
</property> </property>
@ -2719,7 +2717,7 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>226</width> <width>213</width>
<height>221</height> <height>221</height>
</rect> </rect>
</property> </property>
@ -2886,7 +2884,7 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>459</width> <width>445</width>
<height>192</height> <height>192</height>
</rect> </rect>
</property> </property>
@ -3061,8 +3059,8 @@ QGroupBox {
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>62</width> <width>98</width>
<height>18</height> <height>28</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_36"/> <layout class="QVBoxLayout" name="verticalLayout_36"/>

Loading…
Cancel
Save