Added debug output

This commit is contained in:
Christophe Dumez 2011-03-14 19:18:52 +00:00
parent 82877a9afa
commit a4c1b93a42
6 changed files with 14 additions and 2 deletions

View file

@ -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)) {

View file

@ -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() {
delete PropListModel;
delete PropDelegate;
delete m_tabBar;
qDebug() << Q_FUNC_INFO << "EXIT";
}
void PropertiesWidget::showPiecesAvailability(bool show) {

View file

@ -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,

View file

@ -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:
}
~StatusBar() {
qDebug() << Q_FUNC_INFO;
}
QPushButton* connectionStatusButton() const {

View file

@ -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:
}
~TorrentFilesFilterModel() {
qDebug() << Q_FUNC_INFO << "ENTER";
delete m_model;
qDebug() << Q_FUNC_INFO << "EXIT";
}
TorrentFilesModel* model() const {

View file

@ -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() {
delete nameFilterModel;
delete listModel;
delete listDelegate;
qDebug() << Q_FUNC_INFO << "EXIT";
}
TorrentModel* TransferListWidget::getSourceModel() const {