From f9f364211699bc5586e61a1167942cf513aa2568 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 11 Jan 2011 18:53:28 +0000 Subject: [PATCH] Code clean up --- src/mainwindow.cpp | 6 ------ src/mainwindow.ui | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3ce7ff62c..30f2d6b48 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -84,7 +84,6 @@ void qt_mac_set_dock_menu(QMenu *menu); using namespace libtorrent; #define TIME_TRAY_BALLOON 5000 -#define TOOLBAR_SPACING 0 /***************************************************** * * @@ -137,8 +136,6 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo QAction *defineUiLockPasswdAct = lockMenu->addAction(tr("Set the password...")); connect(defineUiLockPasswdAct, SIGNAL(triggered()), this, SLOT(defineUILockPassword())); actionLock_qBittorrent->setMenu(lockMenu); - // Fix Tool bar layout - toolBar->layout()->setSpacing(TOOLBAR_SPACING); // Creating Bittorrent session connect(QBtSession::instance(), SIGNAL(fullDiskError(QTorrentHandle, QString)), this, SLOT(fullDiskError(QTorrentHandle, QString))); connect(QBtSession::instance(), SIGNAL(finishedTorrent(QTorrentHandle)), this, SLOT(finishedTorrent(QTorrentHandle))); @@ -971,7 +968,6 @@ void MainWindow::loadPreferences(bool configure_session) { // General if(pref.isToolbarDisplayed()) { toolBar->setVisible(true); - toolBar->layout()->setSpacing(TOOLBAR_SPACING); } else { // Clear search filter before hiding the top toolbar search_filter->clear(); @@ -991,7 +987,6 @@ void MainWindow::loadPreferences(bool configure_session) { actionIncreasePriority->setVisible(true); prioSeparator->setVisible(true); prioSeparatorMenu->setVisible(true); - toolBar->layout()->setSpacing(TOOLBAR_SPACING); } } else { if(actionDecreasePriority->isVisible()) { @@ -1000,7 +995,6 @@ void MainWindow::loadPreferences(bool configure_session) { actionIncreasePriority->setVisible(false); prioSeparator->setVisible(false); prioSeparatorMenu->setVisible(false); - toolBar->layout()->setSpacing(TOOLBAR_SPACING); } } diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 9f15e615c..9e53de6b1 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -103,12 +103,6 @@ - - true - - - Qt::NoContextMenu - false