mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Compare commits
10 Commits
release-2.
...
release-2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d6101a31f4 | ||
|
|
0f8eadb668 | ||
|
|
443f693acf | ||
|
|
63a458e6ea | ||
|
|
630079f802 | ||
|
|
a9a7b9ff75 | ||
|
|
dc0a8609da | ||
|
|
dfd01cfa5a | ||
|
|
4715746535 | ||
|
|
926b5a7288 |
@@ -1,3 +1,9 @@
|
|||||||
|
* Tue Aug 09 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.8.4
|
||||||
|
- BUGFIX: Added back ability to reorder trackers
|
||||||
|
- BUGFIX: Do not announce to all trackers in the same tier to comply
|
||||||
|
with the multi-tracker specification
|
||||||
|
- BUGFIX: Fix torrent addition dialog geometry saving
|
||||||
|
|
||||||
* Tue Aug 02 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.8.3
|
* Tue Aug 02 2011 - Christophe Dumez <chris@qbittorrent.org> - v2.8.3
|
||||||
- BUGFIX: Fix memory usage problem in log tab
|
- BUGFIX: Fix memory usage problem in log tab
|
||||||
- BUGFIX: Make sure the main window is not hidden on startup if no
|
- BUGFIX: Make sure the main window is not hidden on startup if no
|
||||||
|
|||||||
@@ -6,7 +6,9 @@ include(version.pri)
|
|||||||
|
|
||||||
# Dist
|
# Dist
|
||||||
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}/ &&
|
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}/ &&
|
||||||
dist.commands += svn export . ../$${PROJECT_NAME}-$${PROJECT_VERSION} &&
|
dist.commands += git clone . ../$${PROJECT_NAME}-$${PROJECT_VERSION} &&
|
||||||
|
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}/.git &&
|
||||||
|
dist.commands += rm -f ../$${PROJECT_NAME}-$${PROJECT_VERSION}/.gitignore &&
|
||||||
dist.commands += tar zcpvf ../$${PROJECT_NAME}-$${PROJECT_VERSION}.tar.gz ../$${PROJECT_NAME}-$${PROJECT_VERSION} &&
|
dist.commands += tar zcpvf ../$${PROJECT_NAME}-$${PROJECT_VERSION}.tar.gz ../$${PROJECT_NAME}-$${PROJECT_VERSION} &&
|
||||||
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}
|
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>2.8.3</string>
|
<string>2.8.4</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
|
|||||||
@@ -171,8 +171,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>504</width>
|
<width>489</width>
|
||||||
<height>537</height>
|
<height>601</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_9">
|
<layout class="QVBoxLayout" name="verticalLayout_9">
|
||||||
@@ -487,8 +487,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>504</width>
|
<width>501</width>
|
||||||
<height>923</height>
|
<height>999</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
@@ -946,9 +946,9 @@
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>-91</y>
|
<y>0</y>
|
||||||
<width>504</width>
|
<width>489</width>
|
||||||
<height>493</height>
|
<height>560</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_20">
|
<layout class="QVBoxLayout" name="verticalLayout_20">
|
||||||
@@ -1391,8 +1391,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>363</width>
|
<width>507</width>
|
||||||
<height>427</height>
|
<height>510</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_33">
|
<layout class="QVBoxLayout" name="verticalLayout_33">
|
||||||
@@ -1803,8 +1803,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>542</width>
|
<width>546</width>
|
||||||
<height>455</height>
|
<height>492</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||||
@@ -1823,9 +1823,6 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_18">
|
<layout class="QVBoxLayout" name="verticalLayout_18">
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="checkDifferentDHTPort">
|
<widget class="QGroupBox" name="checkDifferentDHTPort">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
@@ -2179,8 +2176,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>425</width>
|
<width>451</width>
|
||||||
<height>513</height>
|
<height>594</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_23">
|
<layout class="QVBoxLayout" name="verticalLayout_23">
|
||||||
@@ -2556,8 +2553,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>86</width>
|
<width>98</width>
|
||||||
<height>16</height>
|
<height>28</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_36"/>
|
<layout class="QVBoxLayout" name="verticalLayout_36"/>
|
||||||
|
|||||||
@@ -106,13 +106,8 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, MainWindow* main_window, Tra
|
|||||||
ProgressHLayout_2->insertWidget(1, pieces_availability);
|
ProgressHLayout_2->insertWidget(1, pieces_availability);
|
||||||
// Tracker list
|
// Tracker list
|
||||||
trackerList = new TrackerList(this);
|
trackerList = new TrackerList(this);
|
||||||
#if LIBTORRENT_VERSION_MINOR > 14
|
|
||||||
trackerUpButton->setVisible(false);
|
|
||||||
trackerDownButton->setVisible(false);
|
|
||||||
#else
|
|
||||||
connect(trackerUpButton, SIGNAL(clicked()), trackerList, SLOT(moveSelectionUp()));
|
connect(trackerUpButton, SIGNAL(clicked()), trackerList, SLOT(moveSelectionUp()));
|
||||||
connect(trackerDownButton, SIGNAL(clicked()), trackerList, SLOT(moveSelectionDown()));
|
connect(trackerDownButton, SIGNAL(clicked()), trackerList, SLOT(moveSelectionDown()));
|
||||||
#endif
|
|
||||||
horizontalLayout_trackers->insertWidget(0, trackerList);
|
horizontalLayout_trackers->insertWidget(0, trackerList);
|
||||||
// Peers list
|
// Peers list
|
||||||
peersList = new PeerListWidget(this);
|
peersList = new PeerListWidget(this);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>540</width>
|
<width>551</width>
|
||||||
<height>274</height>
|
<height>274</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QStackedWidget" name="stackedProperties">
|
<widget class="QStackedWidget" name="stackedProperties">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="page">
|
<widget class="QWidget" name="page">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||||
@@ -54,8 +54,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>520</width>
|
<width>531</width>
|
||||||
<height>373</height>
|
<height>395</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
@@ -557,15 +557,16 @@
|
|||||||
<string notr="true"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string notr="true"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Sans'; font-size:8pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Cantarell'; font-size:8pt; font-weight:400; font-style:normal;">
|
||||||
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="border: none;">
|
<td style="border: none;">
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';"></p>
|
||||||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';"></p>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';"></p>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';"></p>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';"></p>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';"></p>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';"></p>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Ubuntu';"></p>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></td></tr></table></body></html></string>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans';"></p></td></tr></table></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="openExternalLinks">
|
<property name="openExternalLinks">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@@ -628,22 +629,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeType">
|
|
||||||
<enum>QSizePolicy::Fixed</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>28</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="trackerDownButton">
|
<widget class="QPushButton" name="trackerDownButton">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
|||||||
@@ -100,7 +100,6 @@ void TrackerList::setRowColor(int row, QColor color) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TrackerList::moveSelectionUp() {
|
void TrackerList::moveSelectionUp() {
|
||||||
#if LIBTORRENT_VERSION_MINOR < 15
|
|
||||||
QTorrentHandle h = properties->getCurrentTorrent();
|
QTorrentHandle h = properties->getCurrentTorrent();
|
||||||
if(!h.is_valid()) {
|
if(!h.is_valid()) {
|
||||||
clear();
|
clear();
|
||||||
@@ -134,11 +133,9 @@ void TrackerList::moveSelectionUp() {
|
|||||||
h.replace_trackers(trackers);
|
h.replace_trackers(trackers);
|
||||||
// Reannounce
|
// Reannounce
|
||||||
h.force_reannounce();
|
h.force_reannounce();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackerList::moveSelectionDown() {
|
void TrackerList::moveSelectionDown() {
|
||||||
#if LIBTORRENT_VERSION_MINOR < 15
|
|
||||||
QTorrentHandle h = properties->getCurrentTorrent();
|
QTorrentHandle h = properties->getCurrentTorrent();
|
||||||
if(!h.is_valid()) {
|
if(!h.is_valid()) {
|
||||||
clear();
|
clear();
|
||||||
@@ -172,7 +169,6 @@ void TrackerList::moveSelectionDown() {
|
|||||||
h.replace_trackers(trackers);
|
h.replace_trackers(trackers);
|
||||||
// Reannounce
|
// Reannounce
|
||||||
h.force_reannounce();
|
h.force_reannounce();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TrackerList::clear() {
|
void TrackerList::clear() {
|
||||||
|
|||||||
@@ -392,7 +392,8 @@ void QBtSession::configureSession() {
|
|||||||
//sessionSettings.announce_to_all_trackers = true;
|
//sessionSettings.announce_to_all_trackers = true;
|
||||||
sessionSettings.auto_scrape_interval = 1200; // 20 minutes
|
sessionSettings.auto_scrape_interval = 1200; // 20 minutes
|
||||||
#if LIBTORRENT_VERSION_MINOR > 14
|
#if LIBTORRENT_VERSION_MINOR > 14
|
||||||
sessionSettings.announce_to_all_trackers = true;
|
// Comply with the multi-tracker specification
|
||||||
|
sessionSettings.announce_to_all_trackers = false;
|
||||||
sessionSettings.announce_to_all_tiers = false;
|
sessionSettings.announce_to_all_tiers = false;
|
||||||
sessionSettings.auto_scrape_min_interval = 900; // 15 minutes
|
sessionSettings.auto_scrape_min_interval = 900; // 15 minutes
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -59,10 +59,11 @@
|
|||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
|
|
||||||
torrentAdditionDialog::torrentAdditionDialog(QWidget *parent) :
|
torrentAdditionDialog::torrentAdditionDialog(QWidget *parent) :
|
||||||
QDialog(parent), old_label(""), hidden_height(0) {
|
QDialog(parent), old_label(""), hidden_height(0), m_showContentList(true) {
|
||||||
const Preferences pref;
|
const Preferences pref;
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
setMinimumSize(0, 0);
|
||||||
// Icons
|
// Icons
|
||||||
CancelButton->setIcon(IconProvider::instance()->getIcon("dialog-cancel"));
|
CancelButton->setIcon(IconProvider::instance()->getIcon("dialog-cancel"));
|
||||||
OkButton->setIcon(IconProvider::instance()->getIcon("list-add"));
|
OkButton->setIcon(IconProvider::instance()->getIcon("list-add"));
|
||||||
@@ -85,8 +86,6 @@ torrentAdditionDialog::torrentAdditionDialog(QWidget *parent) :
|
|||||||
contentFilterLayout->insertWidget(1, contentFilterLine);
|
contentFilterLayout->insertWidget(1, contentFilterLine);
|
||||||
// Important: as a default, it inserts at the bottom which is not desirable
|
// Important: as a default, it inserts at the bottom which is not desirable
|
||||||
savePathTxt->setInsertPolicy(QComboBox::InsertAtCurrent);
|
savePathTxt->setInsertPolicy(QComboBox::InsertAtCurrent);
|
||||||
// Remember columns width
|
|
||||||
readSettings();
|
|
||||||
//torrentContentList->header()->setResizeMode(0, QHeaderView::Stretch);
|
//torrentContentList->header()->setResizeMode(0, QHeaderView::Stretch);
|
||||||
defaultSavePath = pref.getSavePath();
|
defaultSavePath = pref.getSavePath();
|
||||||
appendLabelToSavePath = pref.appendTorrentLabel();
|
appendLabelToSavePath = pref.appendTorrentLabel();
|
||||||
@@ -132,18 +131,33 @@ void torrentAdditionDialog::closeEvent(QCloseEvent *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void torrentAdditionDialog::readSettings() {
|
void torrentAdditionDialog::readSettings() {
|
||||||
|
// The window should NOT be shown before calling this method
|
||||||
|
Q_ASSERT(!isVisible());
|
||||||
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||||
restoreGeometry(settings.value("TorrentAdditionDlg/dimensions").toByteArray());
|
QString mode = m_showContentList ? "Full" : "Short";
|
||||||
if(!torrentContentList->header()->restoreState(settings.value("TorrentAdditionDlg/ContentHeaderState").toByteArray())) {
|
qDebug() << Q_FUNC_INFO << "mode:" << mode;
|
||||||
qDebug() << Q_FUNC_INFO << "First executation, resize first section to 400px...";
|
if (!restoreGeometry(settings.value("TorrentAdditionDlg/geometry" + mode).toByteArray())) {
|
||||||
torrentContentList->header()->resizeSection(0, 400); //Default
|
qDebug() << Q_FUNC_INFO << "Failed to load last known dialog geometry";
|
||||||
|
if (!m_showContentList) {
|
||||||
|
qDebug() << Q_FUNC_INFO << "Short mode: adapting default size";
|
||||||
|
resize(width(), height() - 220); // Default size is for full mode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (m_showContentList) {
|
||||||
|
if(!torrentContentList->header()->restoreState(settings.value("TorrentAdditionDlg/ContentHeaderState").toByteArray())) {
|
||||||
|
qDebug() << Q_FUNC_INFO << "First executation, resize first section to 400px...";
|
||||||
|
torrentContentList->header()->resizeSection(0, 400); // Default
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void torrentAdditionDialog::saveSettings() {
|
void torrentAdditionDialog::saveSettings() {
|
||||||
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||||
settings.setValue("TorrentAdditionDlg/ContentHeaderState", torrentContentList->header()->saveState());
|
QString mode = m_showContentList ? "Full" : "Short";
|
||||||
settings.setValue("TorrentAdditionDlg/dimensions", saveGeometry());
|
settings.setValue("TorrentAdditionDlg/geometry" + mode, saveGeometry());
|
||||||
|
if (m_showContentList) {
|
||||||
|
settings.setValue("TorrentAdditionDlg/ContentHeaderState", torrentContentList->header()->saveState());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void torrentAdditionDialog::limitDialogWidth() {
|
void torrentAdditionDialog::limitDialogWidth() {
|
||||||
@@ -165,26 +179,22 @@ void torrentAdditionDialog::limitDialogWidth() {
|
|||||||
|
|
||||||
void torrentAdditionDialog::hideTorrentContent() {
|
void torrentAdditionDialog::hideTorrentContent() {
|
||||||
// Disable useless widgets
|
// Disable useless widgets
|
||||||
hidden_height += torrentContentList->height();
|
|
||||||
torrentContentList->setVisible(false);
|
torrentContentList->setVisible(false);
|
||||||
hidden_height += torrentContentLbl->height();
|
|
||||||
//torrentContentLbl->setVisible(false);
|
//torrentContentLbl->setVisible(false);
|
||||||
hidden_height += selectAllButton->height();
|
for(int i=0; i<selectionBtnsLayout->count(); ++i) {
|
||||||
selectNoneButton->setVisible(false);
|
if(selectionBtnsLayout->itemAt(i)->widget())
|
||||||
selectAllButton->setVisible(false);
|
selectionBtnsLayout->itemAt(i)->widget()->setVisible(false);
|
||||||
|
}
|
||||||
for(int i=0; i<contentFilterLayout->count(); ++i) {
|
for(int i=0; i<contentFilterLayout->count(); ++i) {
|
||||||
if(contentFilterLayout->itemAt(i)->widget())
|
if(contentFilterLayout->itemAt(i)->widget())
|
||||||
contentFilterLayout->itemAt(i)->widget()->setVisible(false);
|
contentFilterLayout->itemAt(i)->widget()->setVisible(false);
|
||||||
}
|
}
|
||||||
contentFilterLayout->update();
|
contentFilterLayout->update();
|
||||||
|
|
||||||
// Resize main window
|
m_showContentList = false;
|
||||||
setMinimumSize(0, 0);
|
|
||||||
resize(width(), height()-hidden_height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void torrentAdditionDialog::showLoadMagnetURI(QString magnet_uri) {
|
void torrentAdditionDialog::showLoadMagnetURI(QString magnet_uri) {
|
||||||
show();
|
|
||||||
is_magnet = true;
|
is_magnet = true;
|
||||||
this->from_url = magnet_uri;
|
this->from_url = magnet_uri;
|
||||||
|
|
||||||
@@ -210,8 +220,15 @@ void torrentAdditionDialog::showLoadMagnetURI(QString magnet_uri) {
|
|||||||
|
|
||||||
// No need to display torrent content
|
// No need to display torrent content
|
||||||
hideTorrentContent();
|
hideTorrentContent();
|
||||||
|
|
||||||
|
// Remember dialog geometry
|
||||||
|
readSettings();
|
||||||
|
|
||||||
// Limit dialog width
|
// Limit dialog width
|
||||||
limitDialogWidth();
|
limitDialogWidth();
|
||||||
|
|
||||||
|
// Display dialog
|
||||||
|
show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void torrentAdditionDialog::showLoad(QString filePath, QString from_url) {
|
void torrentAdditionDialog::showLoad(QString filePath, QString from_url) {
|
||||||
@@ -317,15 +334,18 @@ void torrentAdditionDialog::showLoad(QString filePath, QString from_url) {
|
|||||||
// Update size labels
|
// Update size labels
|
||||||
updateDiskSpaceLabels();
|
updateDiskSpaceLabels();
|
||||||
|
|
||||||
// Show the dialog
|
|
||||||
show();
|
|
||||||
|
|
||||||
// Hide useless widgets
|
// Hide useless widgets
|
||||||
if(t->num_files() <= 1)
|
if(t->num_files() <= 1)
|
||||||
hideTorrentContent();
|
hideTorrentContent();
|
||||||
|
|
||||||
|
// Remember dialog geometry
|
||||||
|
readSettings();
|
||||||
|
|
||||||
// Limit dialog width
|
// Limit dialog width
|
||||||
limitDialogWidth();
|
limitDialogWidth();
|
||||||
|
|
||||||
|
// Show the dialog
|
||||||
|
show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void torrentAdditionDialog::displayContentListMenu(const QPoint&) {
|
void torrentAdditionDialog::displayContentListMenu(const QPoint&) {
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ private:
|
|||||||
bool is_magnet;
|
bool is_magnet;
|
||||||
int hidden_height;
|
int hidden_height;
|
||||||
QStringList path_history;
|
QStringList path_history;
|
||||||
|
bool m_showContentList;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -190,12 +190,6 @@
|
|||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@@ -217,18 +211,12 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout">
|
<layout class="QHBoxLayout" name="selectionBtnsLayout">
|
||||||
<item>
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@@ -250,12 +238,6 @@
|
|||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
PROJECT_NAME = qbittorrent
|
PROJECT_NAME = qbittorrent
|
||||||
PROJECT_VERSION = 2.8.3
|
PROJECT_VERSION = 2.8.4
|
||||||
|
|
||||||
os2 {
|
os2 {
|
||||||
DEFINES += VERSION=\'\"v$${PROJECT_VERSION}\"\'
|
DEFINES += VERSION=\'\"v$${PROJECT_VERSION}\"\'
|
||||||
@@ -9,4 +9,4 @@ os2 {
|
|||||||
|
|
||||||
DEFINES += VERSION_MAJOR=2
|
DEFINES += VERSION_MAJOR=2
|
||||||
DEFINES += VERSION_MINOR=8
|
DEFINES += VERSION_MINOR=8
|
||||||
DEFINES += VERSION_BUGFIX=3
|
DEFINES += VERSION_BUGFIX=4
|
||||||
|
|||||||
Reference in New Issue
Block a user