From 0d6af7007186d8db3a063908a51ef5deb770f0bd Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 2 Apr 2009 01:19:56 +0200 Subject: Various fixes, including bookmarks bar --- src/bookmarks.cpp | 2 -- src/mainwindow.cpp | 8 ++++---- src/rekonqui.rc | 4 ++-- src/tabbar.h | 2 -- 4 files changed, 6 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/bookmarks.cpp b/src/bookmarks.cpp index da8b3908..80f005a5 100644 --- a/src/bookmarks.cpp +++ b/src/bookmarks.cpp @@ -2,7 +2,6 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2007-2008 Trolltech ASA. All rights reserved * Copyright (C) 2008 by Andrea Diamantini * * @@ -181,4 +180,3 @@ void BookmarksProvider::contextMenu(const QPoint & point) menu->setAttribute(Qt::WA_DeleteOnClose); menu->popup(m_bmToolbar->mapToGlobal(point)); } - diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e864f80f..566a1b45 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -132,6 +132,10 @@ MainWindow::MainWindow() // setup history menu: this has to be done AFTER setupGUI!! setupHistoryMenu(); + // bookmarks bar: this has to be done AFTER setupGUI!! + KToolBar *bmToolbar = toolBar("bookmarksToolBar"); + m_bookmarksProvider->provideBmToolbar(bmToolbar); + // setup Tab Bar setupTabBar(); @@ -170,10 +174,6 @@ void MainWindow::setupToolBars() a->setDefaultWidget(m_searchBar); connect(m_searchBar, SIGNAL(search(const KUrl&)), this, SLOT(loadUrl(const KUrl&))); actionCollection()->addAction(QLatin1String("search_bar"), a); - - // bookmarks bar - KToolBar *bmToolbar = toolBar("bookmarksToolBar"); - m_bookmarksProvider->provideBmToolbar(bmToolbar); } diff --git a/src/rekonqui.rc b/src/rekonqui.rc index 4cb5bbf5..dae6c07e 100644 --- a/src/rekonqui.rc +++ b/src/rekonqui.rc @@ -76,14 +76,14 @@ - + Location Toolbar -