mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-05 03:14:44 +00:00
Added debug output
This commit is contained in:
parent
82877a9afa
commit
a4c1b93a42
@ -917,8 +917,8 @@ void MainWindow::processParams(const QString& params_str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::processParams(const QStringList& params) {
|
void MainWindow::processParams(const QStringList& params) {
|
||||||
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
Preferences pref;
|
||||||
const bool useTorrentAdditionDialog = settings.value(QString::fromUtf8("Preferences/Downloads/AdditionDialog"), true).toBool();
|
const bool useTorrentAdditionDialog = pref.useAdditionDialog();
|
||||||
foreach(QString param, params) {
|
foreach(QString param, params) {
|
||||||
param = param.trimmed();
|
param = param.trimmed();
|
||||||
if(misc::isUrl(param)) {
|
if(misc::isUrl(param)) {
|
||||||
|
@ -130,6 +130,7 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, MainWindow* main_window, Tra
|
|||||||
}
|
}
|
||||||
|
|
||||||
PropertiesWidget::~PropertiesWidget() {
|
PropertiesWidget::~PropertiesWidget() {
|
||||||
|
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||||
saveFilesListState();
|
saveFilesListState();
|
||||||
delete refreshTimer;
|
delete refreshTimer;
|
||||||
delete trackerList;
|
delete trackerList;
|
||||||
@ -139,6 +140,7 @@ PropertiesWidget::~PropertiesWidget() {
|
|||||||
delete PropListModel;
|
delete PropListModel;
|
||||||
delete PropDelegate;
|
delete PropDelegate;
|
||||||
delete m_tabBar;
|
delete m_tabBar;
|
||||||
|
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropertiesWidget::showPiecesAvailability(bool show) {
|
void PropertiesWidget::showPiecesAvailability(bool show) {
|
||||||
|
@ -224,8 +224,10 @@ void TorrentModel::populate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TorrentModel::~TorrentModel() {
|
TorrentModel::~TorrentModel() {
|
||||||
|
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||||
qDeleteAll(m_torrents);
|
qDeleteAll(m_torrents);
|
||||||
m_torrents.clear();
|
m_torrents.clear();
|
||||||
|
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||||
}
|
}
|
||||||
|
|
||||||
QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,
|
QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QFontMetrics>
|
#include <QFontMetrics>
|
||||||
|
#include <QDebug>
|
||||||
#include "qbtsession.h"
|
#include "qbtsession.h"
|
||||||
#include "speedlimitdlg.h"
|
#include "speedlimitdlg.h"
|
||||||
#include "iconprovider.h"
|
#include "iconprovider.h"
|
||||||
@ -136,6 +137,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
~StatusBar() {
|
~StatusBar() {
|
||||||
|
qDebug() << Q_FUNC_INFO;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton* connectionStatusButton() const {
|
QPushButton* connectionStatusButton() const {
|
||||||
|
@ -345,8 +345,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
~TorrentFilesModel() {
|
~TorrentFilesModel() {
|
||||||
|
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||||
delete [] files_index;
|
delete [] files_index;
|
||||||
delete rootItem;
|
delete rootItem;
|
||||||
|
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateFilesProgress(std::vector<libtorrent::size_type> fp) {
|
void updateFilesProgress(std::vector<libtorrent::size_type> fp) {
|
||||||
@ -625,7 +627,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
~TorrentFilesFilterModel() {
|
~TorrentFilesFilterModel() {
|
||||||
|
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||||
delete m_model;
|
delete m_model;
|
||||||
|
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||||
}
|
}
|
||||||
|
|
||||||
TorrentFilesModel* model() const {
|
TorrentFilesModel* model() const {
|
||||||
|
@ -129,6 +129,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window,
|
|||||||
}
|
}
|
||||||
|
|
||||||
TransferListWidget::~TransferListWidget() {
|
TransferListWidget::~TransferListWidget() {
|
||||||
|
qDebug() << Q_FUNC_INFO << "ENTER";
|
||||||
// Save settings
|
// Save settings
|
||||||
saveSettings();
|
saveSettings();
|
||||||
// Clean up
|
// Clean up
|
||||||
@ -137,6 +138,7 @@ TransferListWidget::~TransferListWidget() {
|
|||||||
delete nameFilterModel;
|
delete nameFilterModel;
|
||||||
delete listModel;
|
delete listModel;
|
||||||
delete listDelegate;
|
delete listDelegate;
|
||||||
|
qDebug() << Q_FUNC_INFO << "EXIT";
|
||||||
}
|
}
|
||||||
|
|
||||||
TorrentModel* TransferListWidget::getSourceModel() const {
|
TorrentModel* TransferListWidget::getSourceModel() const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user