summaryrefslogtreecommitdiff
path: root/src/bookmarks/bookmarkmanager.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-08-09 15:36:39 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commitb3526c84a15e91b05ee1ea0c6052be3fd73a6044 (patch)
treed587600753d9f22e36670f2ddf7a3808dc26ce94 /src/bookmarks/bookmarkmanager.cpp
parentRestore rekonq settings (diff)
downloadrekonq-b3526c84a15e91b05ee1ea0c6052be3fd73a6044.tar.xz
Moved the bookmark toolbar to be a... toolbar!!!
Diffstat (limited to 'src/bookmarks/bookmarkmanager.cpp')
-rw-r--r--src/bookmarks/bookmarkmanager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bookmarks/bookmarkmanager.cpp b/src/bookmarks/bookmarkmanager.cpp
index 42a6ae40..7e1b5d90 100644
--- a/src/bookmarks/bookmarkmanager.cpp
+++ b/src/bookmarks/bookmarkmanager.cpp
@@ -161,7 +161,7 @@ void BookmarkManager::slotBookmarksChanged()
{
if (bookmarkToolBar)
{
- bookmarkToolBar->toolBar()->clear();
+ bookmarkToolBar->clear();
fillBookmarkBar(bookmarkToolBar);
}
}
@@ -189,19 +189,19 @@ void BookmarkManager::fillBookmarkBar(BookmarkToolBar *toolBar)
connect(menuAction->menu(), SIGNAL(aboutToShow()), toolBar, SLOT(menuDisplayed()));
connect(menuAction->menu(), SIGNAL(aboutToHide()), toolBar, SLOT(menuHidden()));
- toolBar->toolBar()->addAction(menuAction);
- toolBar->toolBar()->widgetForAction(menuAction)->installEventFilter(toolBar);
+ toolBar->addAction(menuAction);
+ toolBar->widgetForAction(menuAction)->installEventFilter(toolBar);
}
else if (bookmark.isSeparator())
{
- toolBar->toolBar()->addSeparator();
+ toolBar->addSeparator();
}
else
{
KBookmarkAction *action = new KBookmarkAction(bookmark, m_owner, this);
action->setIcon(IconManager::self()->iconForUrl(KUrl(bookmark.url())));
- toolBar->toolBar()->addAction(action);
- toolBar->toolBar()->widgetForAction(action)->installEventFilter(toolBar);
+ toolBar->addAction(action);
+ toolBar->widgetForAction(action)->installEventFilter(toolBar);
}
}
}