From 00c5127ba16099bc86009f1613531634cdeb0b96 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 27 Mar 2009 22:25:34 +0000 Subject: [PATCH] - Commited some code by mistake --- src/GUI.cpp | 16 +--------------- src/GUI.h | 3 +-- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/src/GUI.cpp b/src/GUI.cpp index 7fa86a8e8..e67e4a3ce 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -139,7 +139,7 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis downloadingTorrentTab = new DownloadingTorrents(this, BTSession); tabs->addTab(downloadingTorrentTab, tr("Downloads") + QString::fromUtf8(" (0/0)")); tabs->setTabIcon(0, QIcon(QString::fromUtf8(":/Icons/skin/downloading.png"))); - propertiesSplitter->insertWidget(0, tabs); + vboxLayout->addWidget(tabs); connect(downloadingTorrentTab, SIGNAL(unfinishedTorrentsNumberChanged(unsigned int)), this, SLOT(updateUnfinishedTorrentNumber(unsigned int))); connect(downloadingTorrentTab, SIGNAL(torrentDoubleClicked(QString, bool)), this, SLOT(torrentDoubleClicked(QString, bool))); // Finished torrents tab @@ -237,10 +237,6 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis QMainWindow::statusBar()->addPermanentWidget(upSpeedLbl); QMainWindow::statusBar()->addPermanentWidget(statusSep4); QMainWindow::statusBar()->addPermanentWidget(ratioLbl); - // Properties code - propertiesSplitter->handle(1)->setVisible(false); - stackedProperties->setVisible(false); - // Display window if necessary if(!settings.value(QString::fromUtf8("Preferences/General/StartMinimized"), false).toBool()) { show(); } @@ -298,16 +294,6 @@ GUI::~GUI() { qDebug("5"); } -void GUI::on_prop_infos_button_clicked() { - if(stackedProperties->isVisible()) { - propertiesSplitter->handle(1)->setVisible(false); - stackedProperties->setVisible(false); - } else { - stackedProperties->setVisible(true); - propertiesSplitter->handle(1)->setVisible(true); - } -} - void GUI::displayRSSTab(bool enable) { if(enable) { // RSS tab diff --git a/src/GUI.h b/src/GUI.h index a5da22a01..23395396f 100644 --- a/src/GUI.h +++ b/src/GUI.h @@ -173,8 +173,7 @@ class GUI : public QMainWindow, private Ui::MainWindow{ void OptionsSaved(bool deleteOptions); // HTTP slots void on_actionDownload_from_URL_triggered(); - // Properties - void on_prop_infos_button_clicked(); + public slots: void trackerAuthenticationRequired(QTorrentHandle& h);