Browse Source

Added debug output

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
a4c1b93a42
  1. 4
      src/mainwindow.cpp
  2. 2
      src/properties/propertieswidget.cpp
  3. 2
      src/qtlibtorrent/torrentmodel.cpp
  4. 2
      src/statusbar.h
  5. 4
      src/torrentfilesmodel.h
  6. 2
      src/transferlistwidget.cpp

4
src/mainwindow.cpp

@ -917,8 +917,8 @@ void MainWindow::processParams(const QString& params_str) { @@ -917,8 +917,8 @@ void MainWindow::processParams(const QString& params_str) {
}
void MainWindow::processParams(const QStringList& params) {
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
const bool useTorrentAdditionDialog = settings.value(QString::fromUtf8("Preferences/Downloads/AdditionDialog"), true).toBool();
Preferences pref;
const bool useTorrentAdditionDialog = pref.useAdditionDialog();
foreach(QString param, params) {
param = param.trimmed();
if(misc::isUrl(param)) {

2
src/properties/propertieswidget.cpp

@ -130,6 +130,7 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, MainWindow* main_window, Tra @@ -130,6 +130,7 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, MainWindow* main_window, Tra
}
PropertiesWidget::~PropertiesWidget() {
qDebug() << Q_FUNC_INFO << "ENTER";
saveFilesListState();
delete refreshTimer;
delete trackerList;
@ -139,6 +140,7 @@ PropertiesWidget::~PropertiesWidget() { @@ -139,6 +140,7 @@ PropertiesWidget::~PropertiesWidget() {
delete PropListModel;
delete PropDelegate;
delete m_tabBar;
qDebug() << Q_FUNC_INFO << "EXIT";
}
void PropertiesWidget::showPiecesAvailability(bool show) {

2
src/qtlibtorrent/torrentmodel.cpp

@ -224,8 +224,10 @@ void TorrentModel::populate() { @@ -224,8 +224,10 @@ void TorrentModel::populate() {
}
TorrentModel::~TorrentModel() {
qDebug() << Q_FUNC_INFO << "ENTER";
qDeleteAll(m_torrents);
m_torrents.clear();
qDebug() << Q_FUNC_INFO << "EXIT";
}
QVariant TorrentModel::headerData(int section, Qt::Orientation orientation,

2
src/statusbar.h

@ -39,6 +39,7 @@ @@ -39,6 +39,7 @@
#include <QPushButton>
#include <QHBoxLayout>
#include <QFontMetrics>
#include <QDebug>
#include "qbtsession.h"
#include "speedlimitdlg.h"
#include "iconprovider.h"
@ -136,6 +137,7 @@ public: @@ -136,6 +137,7 @@ public:
}
~StatusBar() {
qDebug() << Q_FUNC_INFO;
}
QPushButton* connectionStatusButton() const {

4
src/torrentfilesmodel.h

@ -345,8 +345,10 @@ public: @@ -345,8 +345,10 @@ public:
}
~TorrentFilesModel() {
qDebug() << Q_FUNC_INFO << "ENTER";
delete [] files_index;
delete rootItem;
qDebug() << Q_FUNC_INFO << "EXIT";
}
void updateFilesProgress(std::vector<libtorrent::size_type> fp) {
@ -625,7 +627,9 @@ public: @@ -625,7 +627,9 @@ public:
}
~TorrentFilesFilterModel() {
qDebug() << Q_FUNC_INFO << "ENTER";
delete m_model;
qDebug() << Q_FUNC_INFO << "EXIT";
}
TorrentFilesModel* model() const {

2
src/transferlistwidget.cpp

@ -129,6 +129,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window, @@ -129,6 +129,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, MainWindow *main_window,
}
TransferListWidget::~TransferListWidget() {
qDebug() << Q_FUNC_INFO << "ENTER";
// Save settings
saveSettings();
// Clean up
@ -137,6 +138,7 @@ TransferListWidget::~TransferListWidget() { @@ -137,6 +138,7 @@ TransferListWidget::~TransferListWidget() {
delete nameFilterModel;
delete listModel;
delete listDelegate;
qDebug() << Q_FUNC_INFO << "EXIT";
}
TorrentModel* TransferListWidget::getSourceModel() const {

Loading…
Cancel
Save