From 9ba3862be1c11b1ea8a8c7d27aac2fce7d1ad677 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 10 Jan 2011 17:53:33 +0000 Subject: [PATCH] Reduce top toolbar spacing --- src/mainwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 31fef9d5a..3ce7ff62c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -84,7 +84,7 @@ void qt_mac_set_dock_menu(QMenu *menu); using namespace libtorrent; #define TIME_TRAY_BALLOON 5000 -#define TOOLBAR_SPACING 10 +#define TOOLBAR_SPACING 0 /***************************************************** * * @@ -175,8 +175,7 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo // Name filter search_filter = new LineEdit(); connect(search_filter, SIGNAL(textChanged(QString)), transferList, SLOT(applyNameFilter(QString))); - QAction *searchSeparatorAct = toolBar->insertSeparator(actionLock_qBittorrent); - QAction *searchFilterAct = toolBar->insertWidget(searchSeparatorAct, search_filter); + QAction *searchFilterAct = toolBar->insertWidget(actionLock_qBittorrent, search_filter); search_filter->setFixedWidth(200); QWidget *spacer = new QWidget(this); spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);